Reviewed by Darin.
[WebKit-https.git] / WebCore / ChangeLog
index 38c9e11825186437783df9954b3f1b86da22f273..510a79c088f80bb82e3cbe0e7954006d6e8da1f5 100644 (file)
@@ -1,3 +1,17 @@
+2007-11-15  Alexey Proskuryakov  <ap@webkit.org>
+
+        Reviewed by Darin.
+
+        http://bugs.webkit.org/show_bug.cgi?id=15989
+        XPath queries with predicates incorrectly retains the current node across unions
+
+        Test: fast/xpath/union-context-node.xhtml
+
+        * xml/XPathPath.cpp:
+        (WebCore::XPath::LocationPath::evaluate): Restore context after evaluation.
+        * xml/XPathStep.cpp:
+        (WebCore::XPath::Step::evaluate): Do not backup context, as we can easily re-create it.
+
 2007-11-15  Alexey Proskuryakov  <ap@webkit.org>
 
         Reviewed by Darin.