Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Jan 2007 18:04:14 +0000 (18:04 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Jan 2007 18:04:14 +0000 (18:04 +0000)
commit8b025845b87c7b7433a53df51a81e988e9f21c26
treebee5304416f7697c4cb3e87560c9f628406b878c
parent7886f757dbdda276f57709ec7ef300dae567839f
    Reviewed by Darin.

        http://bugs.webkit.org/show_bug.cgi?id=12359
        XPathEvaluator may return some nodes more than once in a result set

        Test: fast/xpath/nodeset-duplicates.html

        * xml/XPathPath.cpp:
        (WebCore::XPath::LocationPath::doEvaluate): Ensure uniqueness of elements
        in the node-set.

        * xml/XPathPredicate.cpp:
        (WebCore::XPath::Union::doEvaluate): Fixed a uniqueness algorithm that was
        already present here. Added a FIXME about incorrect result ordering.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19227 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/xpath/nodeset-duplicates-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/nodeset-duplicates.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/xml/XPathPath.cpp
WebCore/xml/XPathPredicate.cpp