[Bug 12100] UAs do not actually convert DOMStrings to sequences of Unicode characters. Test case: data:text/html,<!doctype html><script>document.documentElement.title = "\ud800"; alert(document.documentElement.title.charCodeAt(0));</script> Expected 65533, got 5529

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12100

--- Comment #6 from Henri Sivonen <hsivonen@iki.fi> 2011-05-05 06:30:36 UTC ---
(In reply to comment #3)
> Does anyone have any suggestions for how to do this without having to go down
> every single method and attribute or every single algorithm saying which ones
> are operating in Unicode space and which are operating in UTF-16 word space?

Are there, in implementation reality, any APIs that don't operate with UTF-16
code units? At least in Firefox, giving an unpaired surrogate to window.alert()
doesn't throw. It shows an alert with a box that shows the hex for the
surrogate.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 5 May 2011 06:30:38 UTC