Re: More XPath
Martin Honnen <[email protected]> Thu, 21 Dec 2006 15:36:22 +0100
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[email protected]> |
Leon Bezuidenhout wrote:
> But when I execute
> var aItems = document.evaluate("//DSODetails", xNode, oNSResolver,
> XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
> Then aItem.length = 0
>
> Is this a bug?
Here is a complete test case
<http://home.arcor.de/martin.honnen/javascript/2006/12/test2006122101.html>
shows 1 for me not 0 with both SeaMonkey 1.0 and Firefox 2.0. Please
provide a minimal test case and tell us exactly which version of Mozilla
you think has a bug.
And you have already been warned that Mozilla does not support XML data
islands, if you are silly enough to feed innerHTML to an XML parser then
it is not a bug in Mozilla if case of element names is lost. You need to
load and parse XML markup with Mozilla's XML parser and not with its
HTML parser.
--
Martin Honnen
http://JavaScript.FAQTs.com/