Closed
Bug 292587
Opened 20 years ago
Closed 20 years ago
When DOCTYPE is specified Firefox/Mozilla loads only css sheets with .css extension
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
INVALID
People
(Reporter: kiput, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 (I know this bug was reported, but it wasn't fixed) Let's say, I want have this piece of code: <link rel="stylesheet" type="text/css" href="style.php" /> It won't work if I have DOCTYPE on my page (doesn't matter if it is HTML or XHTML) If I want to get it to work I have either: 1. Remove DOCTYPE 2. Change css.php to style.css This bug is also present on Windows XP. Reproducible: Always Steps to Reproduce: 1. Paste this into foo.html (for example): <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"> <html> <head> <link rel=\"stylesheet\" type=\"text/css\" href=\"css.php\" /> </head> <body>Hello World</body> </html> 2. Paste this into css.php: html, body { background-color: #555588; } Actual Results: CSS didn't load. Page had white background. Expected Results: CSS should load. Page should have blue background.
Oops, made a mistake. There are \ before ". These should be removed. It's because I copied it directly from PHP source. Sorry. =)
Comment 2•20 years ago
|
||
Verify that the media type of style.php is text/css. If it's not the case, this bug should be INVALID.
Comment 3•20 years ago
|
||
(In reply to comment #2) > Verify that the media type of style.php is text/css. > If it's not the case, this bug should be INVALID. See <http://www.mozilla.org/docs/web-developer/quirks/quirklist.html> : the text/css MIME-extension is mandatory in standards mode, but not in quirksmode (which is triggered when DOCTYPE is missing). You didn't menion what the DOCTYPE was, but it was probably a standrad one (see <http://www.mozilla.org/docs/web-developer/quirks/doctypes.html>).
Comment 4•20 years ago
|
||
Since your css.php does not have:
header('Content-Type: text/css;');
..this is surely invalid.Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•