NEW 19216
Character set detection seems to happen too late
https://bugs.webkit.org/show_bug.cgi?id=19216
Summary Character set detection seems to happen too late
David Carson
Reported 2008-05-23 08:47:06 PDT
When I load this site, the text seems garbled. When I load it in FF, it starts garbled, but then switches over the page to the correct character set.
Attachments
Alexey Proskuryakov
Comment 1 2009-01-11 14:54:22 PST
This document has a broken structure (part of body content comes before head). In such cases, WebKit only checks the first kilobyte for meta charset - while Firefox will restart decoding if it sees the meta at any place in the document. HTML5 specifies Firefox behavior, but despite this, I have very strong doubts about it, because parsing can have side effects (like script execution), which re-parsing would repeat.
Note You need to log in before you can comment on or make changes to this bug.