[webkit-changes] [WebKit/WebKit] b0e1a9: Update Node.lookupNamespaceURI() and XPathEvaluato...

Chris Dumez noreply at github.com
Sat Feb 25 21:53:48 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b0e1a9c1d9b3b952faa97d997c57d6358d11b79f
      https://github.com/WebKit/WebKit/commit/b0e1a9c1d9b3b952faa97d997c57d6358d11b79f
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-02-25 (Sat, 25 Feb 2023)

  Changed paths:
    M LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri16.js
    M LayoutTests/fast/dom/gc-9-expected.txt
    M LayoutTests/fast/dom/gc-9.html
    M LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-lookupNamespaceURI-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-lookupNamespaceURI.html
    A LayoutTests/imported/w3c/web-platform-tests/domxpath/xpathevaluatorbase-creatensresolver-expected.txt
    A LayoutTests/imported/w3c/web-platform-tests/domxpath/xpathevaluatorbase-creatensresolver.html
    M Source/WebCore/dom/Document.h
    M Source/WebCore/dom/Node.cpp
    M Source/WebCore/xml/XPathEvaluator.h
    M Source/WebCore/xml/XPathEvaluatorBase.idl

  Log Message:
  -----------
  Update Node.lookupNamespaceURI() and XPathEvaluatorBase.createNSResolver()
https://bugs.webkit.org/show_bug.cgi?id=252716

Reviewed by Darin Adler.

Update Node.lookupNamespaceURI() and XPathEvaluatorBase.createNSResolver() per:
https://github.com/whatwg/dom/pull/1165
https://github.com/web-platform-tests/wpt/pull/38636

- lookupNamespaceURI():
Element should handle "xml" and "xmlns" by default.

- createNSResolver():
It should return the argument as is, and should not add "xml" prefix support.

* LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-lookupNamespaceURI-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-lookupNamespaceURI.html:
* LayoutTests/imported/w3c/web-platform-tests/domxpath/xpathevaluatorbase-creatensresolver-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/domxpath/xpathevaluatorbase-creatensresolver.html: Added.
* Source/WebCore/dom/Document.h:
(WebCore::Document::createNSResolverForBindings const):
* Source/WebCore/dom/Node.cpp:
(WebCore::locateDefaultNamespace):
* Source/WebCore/xml/XPathEvaluator.h:
(WebCore::XPathEvaluator::createNSResolverForBindings const):
* Source/WebCore/xml/XPathEvaluatorBase.idl:

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




More information about the webkit-changes mailing list