Re: Unable to round-trip tab character using XMLHttpRequest and XMLSerializer
Christian Biesinger <[email protected]> Sun, 30 Sep 2007 16:24:12 +0200
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
Boris Zbarsky wrote:
> Parsing that should give a 3-letter attr value in Gecko. As a simple test:
>
> data:text/xml,<root%20attr="%20%09%20"/>
>
> javascript:alert(document.documentElement.getAttribute("attr").length)
But
javascript:alert(document.documentElement.getAttribute("attr").charCodeAt(1).toString(16))
alerts (hex) 20, i.e. a space.
Which is consistent with http://www.w3.org/TR/xml11/#AVNormalize (and
http://www.w3.org/TR/xml/#AVNormalize), which are better references than
the xml:space one from the original post.