Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dom, domxpath: Update lookupNamespaceURI() and createNSResolver() #38636

Merged
merged 1 commit into from
Feb 22, 2023

Conversation

tkent-google
Copy link
Contributor

for whatwg/dom#1165.

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

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

for whatwg/dom#1165.

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

createNSResolver():
  It should return the argument as is, and should not add "xml" prefix support.
@annevk annevk merged commit eb3ce5b into master Feb 22, 2023
@annevk annevk deleted the tkent-nsresolver branch February 22, 2023 16:14
annevk pushed a commit to whatwg/dom that referenced this pull request Feb 22, 2023
webkit-early-warning-system pushed a commit to cdumez/WebKit that referenced this pull request Feb 26, 2023
…ver()

https://bugs.webkit.org/show_bug.cgi?id=252716

Reviewed by Darin Adler.

Update Node.lookupNamespaceURI() and XPathEvaluatorBase.createNSResolver() per:
whatwg/dom#1165
web-platform-tests/wpt#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants