[webkit-changes] [WebKit/WebKit] fe83c2: XPath: Fix context node of rhs of union operator

Chris Dumez noreply at github.com
Mon May 15 19:28:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fe83c2f1044858d76d0795cd29f1607b36106b1e
      https://github.com/WebKit/WebKit/commit/fe83c2f1044858d76d0795cd29f1607b36106b1e
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-05-15 (Mon, 15 May 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/domxpath/node-sets-expected.txt
    M Source/WebCore/xml/XPathPredicate.cpp

  Log Message:
  -----------
  XPath: Fix context node of rhs of union operator
https://bugs.webkit.org/show_bug.cgi?id=256770

Reviewed by Alexey Proskuryakov.

Use the right context node for rhs of union operator. This aligns our behavior
with Firefox and Chrome.

This is a cherry-pick of the following Blink commit:
- https://chromium-review.googlesource.com/c/chromium/src/+/1973333

* LayoutTests/imported/w3c/web-platform-tests/domxpath/node-sets-expected.txt:
* Source/WebCore/xml/XPathPredicate.cpp:
(WebCore::XPath::Union::evaluate const):

Canonical link: https://commits.webkit.org/264097@main




More information about the webkit-changes mailing list