Closed Bug 500611 Opened 15 years ago Closed 14 years ago

[HTML5] Figure out <meta charset> ignoring in document.write()

Categories

(Core :: DOM: HTML Parser, defect, P4)

Other Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 548232

People

(Reporter: hsivonen, Unassigned)

Details

IE, Gecko and WebKit ignore <meta charset> from document.write().
http://hsivonen.iki.fi/test/moz/iso-8859-2-in-doc-write.htm
http://hsivonen.iki.fi/test/moz/iso-8859-2-in-doc-write-trail.htm

Need to figure out if/when <meta charset> should be ignored if 
 1) '>' is in document.write()
 2) the start of the token is in document.write()

Implement conclusion and upstream to HTML5 spec.
This was already mostly implemented as a side effect of speculative parsing. (If the terminating '>' character of the meta tag is document.written, the meta doesn't switch charset.)
Priority: -- → P4
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.