Closed Bug 227918 Opened 19 years ago Closed 19 years ago

mozilla moves <style> eelemnt from <body> to <head>

Categories

(Core :: DOM: Core & HTML, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: kae, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6a) Gecko/20031030
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6a) Gecko/20031030

The example URL shows that the <style> element has been moved to the <head> of
the  document. This causes problems in some applications, such as the HTMLArea
engine (http://dynarch.com/htmlarea/example.html), which relies on the DOM
matching the source's described layout.

Reproducible: Always

Steps to Reproduce:
1. go to the mentioned example URL
Actual Results:  
the page demonstrated that the <style> element has been moved from the <body>
without this action being requested.

Expected Results:  
Mozilla should have left the structure of the document as it was described in
the source.
I think/hope this is going to be marked as either INVALID or WONTFIX
(<http://www.w3.org/TR/html401/present/styles.html#h-14.2.3>). Especially since
I heard Mozilla supports too many quirks already.
INVALID. In HTML, the <style> element isn't valid in <body>, only in <head>. 
This is true even if you insert it after the load completes.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.