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

Re: [idl] ByteString

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 25 Jun 2012 11:54:06 +1000
Message-ID: <4FE7C4BE.8050806@mcc.id.au>
To: Anne van Kesteren <annevk@annevk.nl>
CC: public-script-coord@w3.org
Anne van Kesteren:
> Very cool! There's a but, however. The "x modulo 256" trick is not in
> line with XMLHttpRequest, which throws for elements greater than 0xFF.
> (Although there is one case where it currently does not throw,
> getResponseHeader(), I kind of hope implementations are willing to
> change that.)

OK, changed to throw TypeError when any element of the string is > 255.

> "ByteString is only suitable for interfacing with protocols that use
> bytes and strings interchangeably, such as HTTP."

Thanks, added.
Received on Monday, 25 June 2012 01:54:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:06 UTC