[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

Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #10 from Ian 'Hixie' Hickson <ian@hixie.ch> 2011-06-03 19:37:09 UTC ---
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the tracker issue; or you may create a tracker issue
yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.

I went through the spec and try to rationalise all this to make more sense and
more closely match reality. I think there might be some stuff that is
border-line undefined, e.g. it's not clear to me what alert() should do if
passed a DOMString with an unpaired surrogate. In fact in general I don't
really understand what the type of DOMString is now... it's kind of Unicode,
it's kind of UTF-16... If I figure out a better way to make define this stuff
I'll update it again.

Aryeh: BTW, I looked at the atob/btoa stuff and it didn't seem to need this
anymore. Please let me know if I broke it.

-- 
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 Friday, 3 June 2011 19:37:12 UTC