|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-09-10 21:05 UTC] aharvey@php.net
-Status: Open
+Status: Not a bug
[2014-09-10 21:05 UTC] aharvey@php.net
[2014-09-11 13:11 UTC] scratch65535 at att dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 20:00:02 2025 UTC |
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>' ; ?>