Closed
Bug 190652
Opened 23 years ago
Closed 23 years ago
Doctype declaration HTML 4.01 renders external stylesheet useless
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: donmorris, Assigned: dbaron)
References
()
Details
User-Agent: Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.2.1) Gecko/20021130
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
...
<link rel="stylesheet" type="text/css" href="blog.css">
The external stylesheet is ignored with this doctype declaration. Change the
declaration to "...HTML 4.0..." and the stylesheet is used.
Interestingly, the problem only occurs with the file from the remote server. A
local file with the problem declaration uses the stylesheet.
Reproducible: Always
Steps to Reproduce:
1. Change doctype to HTML 4.0
2. View as local file -- stylesheet is used
3. Upload to server
4. View http://caralynn.com -- stylesheet is used
5. Change doctype to HTML 4.01
6. View as local file -- stylesheet is used
7. Upload to server
8. View http://caralynn.com -- stylesheet is ignored
Actual Results:
No background images for table cells were loaded, colors and fonts, etc.,
specified in stylesheet were not used.
Expected Results:
Mozilla should have used the external stylesheet.
If the styles are embedded using <style></style> tags, the styles are used.
Comment 1•23 years ago
|
||
Yes, this is the way it works. See
http://www.mozilla.org/docs/web-developer/quirks/ for an explanation.
See also the Tools, Web Development, JavaScript Console where the error message
appears: that the stylesheet was ignored because its MIME type was not text/css
(but rather text/html). Once the MIME type is fixed, Mozilla will process the
stylesheet in standards mode. Right now it is only processed in quirks mode.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•