Bug #68003 [Opn->Nab]: <!DOCTYPE html> appears to break linked css
| From: | aharvey@php.net | Date: | Wed, 10 Sep 2014 21:05:54 +0000 |
| Subject: | Bug #68003 [Opn->Nab]: <!DOCTYPE html> appears to break linked css | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-187513@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68003&edit=1
ID: 68003
Updated by: aharvey@php.net
Reported by: scratch65535 at att dot net
Summary: <!DOCTYPE html> appears to break linked css
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: XPSP3, FreeBSD 9.2
PHP Version: 5.5.16
Block user comment: N
Private report: N
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
PHP doesn't parse the HTML that is output, nor does it handle style sheets.
Previous Comments:
------------------------------------------------------------------------
[2014-09-10 20:51:23] scratch65535 at att dot net
Description:
------------
Using HTML 5's <!DOCTYPE html> with <link>'d css file seems to cause php to
fail to read the css, or fail to pass it to the interpreter in Firefox 32 and Opera 24.0.1558.53
under XP, and Firefox 17.0. under FreeBSD 9.2
Firebug sees the <link> reference but believes the file is empty.
Removing the doctype reference restores the css file's effect.
Using an html 4 doctype reference doesn't disable the css styling.
Including the css code in the <head> produces styled output regardless of whether doctype html
is present.
Test script:
---------------
.Bkgd {
background-color:#990000;
color:#FFFFFF;
padding:30px;
margin-top:50px }
========================
<?php
echo
// '<!DOCTYPE html>'.
'<html>
<head>
<meta HTTP-EQUIV="content-type" CONTENT="text/html;
charset=ISO8859-1"></meta>
<link href="_____html5test.css" type="text/css"
rel="stylesheet" ></link>
</head>
<body>
<div class="Bkgd">
Hello world
</div>
</body>
</html>' ;
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68003&edit=1