Bug #68003 [NEW]: <!DOCTYPE html> appears to break linked css

From: Date: Wed, 10 Sep 2014 20:51:24 +0000
Subject: Bug #68003 [NEW]: <!DOCTYPE html> appears to break linked css
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187512@lists.php.net to get a copy of this message
From: scratch65535 at att dot net Operating system: XPSP3, FreeBSD 9.2 PHP version: 5.5.16 Package: *General Issues Bug Type: Bug Bug description:<!DOCTYPE html> appears to break linked css 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 bug report at https://bugs.php.net/bug.php?id=68003&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68003&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68003&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68003&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68003&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68003&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68003&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68003&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68003&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68003&r=support Expected behavior: https://bugs.php.net/fix.php?id=68003&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68003&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68003&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68003&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68003&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68003&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68003&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68003&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68003&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68003&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68003&r=mysqlcfg

« previous php.bugs (#187512) next »