The XPath spec says that a node-set is "an unordered collection of nodes
without duplicates". In certain situations, we're not removing duplicates
in the node-sets. If I'm not mistaken, the following two expressions should
return identical node-sets:
/descendant-or-self::*/A
/descendant::A/../A
However, the second expression returns duplicates in its node-set (example
page:
http://code.google.com/p/jsprofile/source/browse/trunk/test/functional/ajaxslt/n
ews.google.com.html)
We can take a look at how other engines (i.e. cybozu) detect duplicates;
comparing nodes using "===" is non-performant.
Original issue reported on code.google.com by hbc...@gmail.com on 26 Jun 2008 at 2:10
Original issue reported on code.google.com by
hbc...@gmail.com
on 26 Jun 2008 at 2:10