Re: bug in e4x? missing = in XML attribute

Martin Honnen <[email protected]> Tue, 17 Feb 2009 19:19:30 +0100
Newsgroups gmane.comp.mozilla.devel.xml
Organization Liberty Development
Message-ID <[email protected]>
Boris Zbarsky wrote:
> OK, I have this minimized to this script:
> 
>       var xmlEl = new XML("<feed 
> xmlns:gContact='http://schemas.google.com/contact/2' 
> xmlns:batch='http://schemas.google.com/gdata/batch' 
> xmlns:gd='http://schemas.google.com/g/2005' 
> gd:etag='W/&quot;xxxxxxxxxxxxxxxxxxxxxxw.&quot;'><updated>2009-02-1</updated><e><c>\u2028</c></e></feed>"); 
> 
>       var pre = document.createElement('pre');
>       pre.appendChild(document.createTextNode(xmlEl.toXMLString()));
>       document.body.appendChild(pre);
> 
> with no XMLHttpRequest required.  Deleting chars from the string 
> sometimes changes the error, and sometimes makes it go away entirely, 
> but I bet it can be minimized some more.  If someone wants to take a 
> shot at that, great.
> 
> This doesn't look like an XML issue, though, but a JS engine one.

Thanks for the reduction. I agree it is a JavaScript engine issue, I 
have filed https://bugzilla.mozilla.org/show_bug.cgi?id=478905 on this.


-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/