[Webkit-unassigned] [Bug 17079] XML document sent with wrong encoding does not fail as expected (affects Acid3 test 70)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 25 00:32:44 PDT 2008


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





------- Comment #10 from eric at webkit.org  2008-03-25 00:32 PDT -------
So the changes here need to happen to the various TextDecoder classes.  I think
for TextDecoderICU we can implement a "strict" mode using error callbacks which
are covered by this documentation:
http://www.icu-project.org/apiref/icu4c/ucnv__err_8h.html#1e9f87a69d75288c0f93bd77a6f2c9db
currently we don't use any error callbacks.

We would then create the TextDecoder in a "strict" mode (or set it in a strict
mode once we've determined we're handling XML) and then check if it had an
error in the write() function in the XMLTokenizer.  If it had an error we would
stop tokenizing and display the error (using the existing error reporting
functions in XMLTokenizer).


-- 
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