Re: bug in e4x? missing = in XML attribute

Boris Zbarsky <[email protected]> Tue, 17 Feb 2009 10:03:30 -0500
Newsgroups gmane.comp.mozilla.devel.xml
Message-ID <[email protected]>
Martin Honnen wrote:
>> Test case:
>> http://www.zindus.com/tmp/test-case-2009-02-17-1.html
>> The xml:
>> http://www.zindus.com/tmp/test-case-2009-02-17-1.xml
>>
>> Firefox 3.0.6 error console reports:
>>   Error: illegal XML character

I get that too in trunk Gecko.

However, if I start reducing it (and it's possible to reduce it a good 
bit while still getting that error), I eventually get to a point where 
the error starts changing (e.g. complaining about there being a missing 
'=' in an attribute).

If I breakpoint on the "invalid XML character" error, I see that it 
happens when we get a '<' while we think we're in the process or parsing 
an open tag.

In particular, it thinks it's looking at a string that looks something like:

 
<author/www.google.com/m8/feeds/contacts/a.b%40gdomain.example.com/thin?start-index=2681&amp;max-results=10'

Which is pretty clearly bogus.

-Boris