← Back to release summary

Update of "xml" prefix handling in lookupNamespaceURI() and createNSResolver()

Category
DOM
Type
Chromium catches up
Status
Enabled by default (Chrome 115)
Intent stage
Prepare to ship

Summary

Node.lookupNamespceURI() supports "xml" and "xmlns" prefixes by default. The function returns fixed namespace strings for them. Document.createNSResolver() and XPathEvaluator.createNSResolver() stops to wrap the specified node to add "xml" prefix handling. They return the specified node as is. Web developers can use an element as an XPathNSResolver without wrapping it with createNSResolver().

Standards & signals

View on chromestatus.com