Re: bug in e4x? missing = in XML attribute

[email protected] Mon, 16 Feb 2009 12:38:38 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.xml
Organization http://groups.google.com
Message-ID <4abc38ea-f733-4b41-b87c-89ae96630159@b40g2000pri.googlegroups.com>
On Feb 15, 2:05=A0pm, Leni <[email protected]> wrote:
> Martin Honnen wrote:
> > I can't reproduce the issue with Firefox 3.0 (Mozilla/5.0 (Windows; U;
> > Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6). Test
> > case is at
> >http://home.arcor.de/martin.honnen/javascript/2009/02/test2009021501....
> > and loads XML document from
> >http://home.arcor.de/martin.honnen/javascript/2009/02/test2009021501T...
> > which is the file you sent.
>
> > I don't get any script or XML parsing errors.
>
> Yes, you are right.
>
> The extension I am working on is for Thunderbird2 and Thunderbird3, and
> I can only reproduce the problem under Thunderbird2, not Thunderbird3.
> Sorry for not making this clear in the original posting (I didn't test tb=
3).
>
> If you are curious to reproduce this problem in Thunderbird using
> Martin's test case, install the ThunderbirdBrowse extension:https://addon=
s.mozilla.org/en-US/thunderbird/addon/5373
>
> Then visit the link inThunderBrowse:http://home.arcor.de/martin.honnen/ja=
vascript/2009/02/test2009021501....
>
> In Thunderbird3, the page is served correctly - the XML is shown.
>
> In Thunderbird2, the page is not served correctly - the javascript error
> console reports:
>
> =A0 =A0Error: e.target.parentNode.hasAttribute is not a function
> =A0 =A0Source File: chrome://tbrowse/content/tburlclk.js
> =A0 =A0Line: 377
>
> I won't file a bug report for this tb2-only problem then because I doubt
> it would get much attention.
>
> About a workaround for Thunderbird 2, the DOM =3D=3D> XMLSerializer =3D=
=3D> e4x
> technique does parse the XML but converts that 3-byte UTF-8 sequence
> into a '(' which makes it lossy. =A0If someone can shed any light on what
> is going on here and in particular, what class of UTF-8 byte sequences
> might be affected by such lossy conversion, it would help me evaluate
> whether this technique is acceptable.
>
> Or if anyone can think of a better workaround for tb2 it will be welcome!
>
> Thanks -
>
> Leni.

Actually, it's a bug that deals with javascript link handling in
ThunderBrowse. 3.2.3 fixes the bug.