[Bug 12100] New: 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

           Summary: 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
           Product: HTML WG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#flo
                    at-nan
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


Specification:
http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#float-nan

Comment:
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 55296, in all tested browsers.  Did you mean to not match browsers here?

Posted from: 68.175.61.233

-- 
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 Wednesday, 16 February 2011 19:51:45 UTC