Re: XPath over DOM with CDATA section and text node sibling
Jonas Sicking <[email protected]> Tue, 29 May 2007 15:08:36 -0700
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Message-ID | <[email protected]> |
Martin Honnen wrote: > Jonas Sicking wrote: > >> No, this is a known bug. Things work fine if you use normal XSLT and >> the <?xml-stylesheet?> PI, but if you use DOM-XPath functions like >> document.evaluate adjacent text nodes are not merged. This turns out >> to be fairly difficult to fix without degrading performance a lot. >> >> Usually you can work around this by writing your expressions >> differently, though that's not always very easy. Exactly what are you >> trying to do? > > I am just looking at how different XPath over DOM implementations handle > that mapping so as long as I am aware of how Mozilla handles this I am > fine. Thanks. It is arguably somewhat undefined if DOM-XPath should consider adjacent text nodes as a single node, but IMHO it's the right thing to do. So I would say that mozilla has a bug here. / Jonas