W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2009

[whatwg] DOMParser / XMLSerializer

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 21 May 2009 14:07:40 -0400
Message-ID: <4A15986C.3030208@mit.edu>
Anne van Kesteren wrote:
>> 2)  DOMParser can parse from a byte array instead of a string; this
>>      makes it a little easier to work with XML in encodings other than
>>      UTF-8 or UTF-16.
> ECMASCript doesn't have byte arrays though. (Though it would be nice if it did.)

Sure, but it has arrays that you can put integers in the 0-255 range into.

>> 2)  XMLSerializer can serialize a subtree rooted at a given node without
>>      removing the node from its current location in the DOM.
> Isn't this true for innerHTML too?

No, you'd need outerHTML for that.  At least if you want to get the same 
behavior as XMLSerializer has.

Received on Thursday, 21 May 2009 11:07:40 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:12 UTC