Closed Bug 357807 Opened 18 years ago Closed 18 years ago

<style> element inside <body> is moved to <head>

Categories

(Firefox :: General, defect)

x86
Windows Server 2003
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 308145

People

(Reporter: fredck, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

If you have a <style> element inside <body>, it get moved to <head> when parsing. While this behavior is ok for rendering purposes, it is not what users expect when  navigating the DOM.

Firefox should maintain the elements position as specified in the source, even if is completely wrong to have a <style> inside <body>.

Reproducible: Always

Actual Results:  
The <style> is moved to <head>.

Expected Results:  
The <style> should remain in the position defined in the source.

The provided URL is a TC for it.

A related bug has been filed in the FCKeditor project:
http://sourceforge.net/tracker/index.php?func=detail&aid=1526154&group_id=75348&atid=543653

*** This bug has been marked as a duplicate of 308145 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Test results with other browsers:

- IE6: OK
- Opera 9: OK
- Safari Nightly: Failed (same behavior as FF)
You need to log in before you can comment on or make changes to this bug.