W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > February 2011

[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

From: <bugzilla@jessica.w3.org>
Date: Wed, 16 Feb 2011 19:51:44 +0000
To: public-html-bugzilla@w3.org
Message-ID: <bug-12100-2486@http.www.w3.org/Bugs/Public/>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 16 February 2011 19:51:55 GMT