W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

[Bug 17620] Add steps to convert a sequence of Unicode characters to a DOMString

From: <bugzilla@jessica.w3.org>
Date: Thu, 28 Jun 2012 02:38:30 +0000
Message-Id: <E1Sk4co-00051y-R2@jessica.w3.org>
To: public-script-coord@w3.org

--- Comment #1 from Cameron McCormack <cam@mcc.id.au> 2012-06-28 02:38:36 UTC ---
I think the reason that I didn't include this reverse algorithm was because
there's only one correct way of converting a Unicode string into UTF-16 code
units (whereas going the other way you need to deal with illegal UTF-16
sequences so there were some different approaches we could have taken) so you
could probably just write a single line in your spec saying for example

  Let s be the DOMString that represents the sequence of code units resulting
  from encoding the sequence of Unicode characters t as UTF-16.

I guess I just want to avoid re-specifying the UTF-16 encoding algorithm.  But
if you think the above is not precise enough I guess I can add your suggested

Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Thursday, 28 June 2012 02:38:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:06 UTC