As written, the charset sniffing algorithm doesn't trim space characters from around the tentative encoding name. html5lib test case expect the space characters to be trimmed.

I suggest trimming space characters (or anything <= 0x20 depending on which approach is the right for compat).

--
Henri Sivonen
[EMAIL PROTECTED]
http://hsivonen.iki.fi/


Reply via email to