[webkit-changes] [WebKit/WebKit] 1ffefa: XPath: Fix context node after evaluating an expres...

Chris Dumez noreply at github.com
Thu May 18 13:46:31 PDT 2023


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

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

  Log Message:
  -----------
  XPath: Fix context node after evaluating an expression in a predicate
https://bugs.webkit.org/show_bug.cgi?id=256953

Reviewed by Darin Adler.

Fix evaluation context for XPath predicate evaluation.

This aligns our behavior with Blink & Gecko.

This is a cherry-pick of Blink's:
https://chromium.googlesource.com/chromium/src.git/+/869417867e1da3822a03f8ce1e454d19706c6832

* LayoutTests/imported/w3c/web-platform-tests/domxpath/predicates-expected.txt:
* Source/WebCore/xml/XPathPredicate.cpp:
(WebCore::XPath::evaluatePredicate):

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




More information about the webkit-changes mailing list