[Webkit-unassigned] [Bug 12526] Safari ignores encoding description "charset=Shift_JIS" in invalid html

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 20 12:36:21 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=12526





------- Comment #6 from darin at apple.com  2007-08-20 12:36 PDT -------
(In reply to comment #5)
> The same thing hurts Safari's web compatibility at http://www.hebrewtoday.com
> 
> It begins with '<font> and <a name>', but later it has a meta tag for
> windows-1255.  Interesting is that Safari 2.0.x shipped with Mac OS 10.4 does
> not have this problem.  So, this is a relatively new 'regression'(?) introduced
> for perf. reason, right? 

That's oversimplifying. The changes we made weren't to improve performance.
They've been to improve correctness. Our old algorithm got the wrong answer at
many websites, and the refinements we've made have fixed some and broken
others.

What makes this a big challenge is that Firefox takes a completely different
approach, reloading the web page when it encounters a <meta> tag that changes
the charset.

I'm not sure exactly why Safari 2 worked on this site. It had a similar rule,
but there were many bugs in its implementation.

It would be instructive to learn how our charset detection compares to IE's
approach. We already understand Firefox's approach pretty well, and we can't
adopt that any time soon.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list