Closed
Bug 119300
Opened 23 years ago
Closed 23 years ago
<html> tag has to be first in page
Categories
(Tech Evangelism Graveyard :: English US, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: doofer-public, Assigned: doronr)
References
()
Details
(Whiteboard: [CSS-MIME])
The above page did not render correctly when the line: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> was at the beginning of the page. Now that <html> has been moved to the first line of the html file everything works fine. It is my understanding that you are supposed to have the doctype tag before the html open tag. It passes the WC3 parser with doctype first! Previous versions of Mozilla did not have this problem, it crept in somewhere between the 0.96 and 0.97 release.
Comment 1•23 years ago
|
||
How was the rendering incorrect? Moving the <html> to the beginning merely put the document in quirks mode (instead of standards mode) by creating an invalid document)
Comment 2•23 years ago
|
||
The page serves up the stylesheet (http://www.datalas.com/templates/layout.css) as text/plain instead of text/css. In standards mode this leads to the sheet being ignored, per HTTP spec. See the 0.9.7 release notes for details and advice on configuring Apache (which you use) to serve it with the right MIME type.
Assignee: harishd → doronr
Status: UNCONFIRMED → NEW
Component: Parser → US General
Ever confirmed: true
Product: Browser → Tech Evangelism
QA Contact: moied → zach
Whiteboard: [CSS-MIME]
Version: other → unspecified
Comment 3•23 years ago
|
||
Mail from reporter: Thanks for that, it is in fact a friends box, but it did have us most perplexed. ----------------------------------- Page now serves the correct type. Marking fixed.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•