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().
The risk is low. Firefox has had this behavior for a long time, and Safari has adopted the behavior. This feature has an incompatible change on createNSResolver(). If a disconnected non-element node is specified to createNSResolver(), the resultant object has no "xml" prefix support any longer. We have a UseCounter for such a case, and the counter value is 0.0. https://chromestatus.com/metrics/feature/timeline/popularity/4475
None
Shipping on desktop | 115 |
Shipping on Android | 115 |
Shipping on WebView | 115 |
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGH7WqGqrLAR9_dhH0XPiC0T57xBHuRcqTf7934Ap4vbNB5Ngw%40mail.gmail.com.
LGTM2
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKXHy%3Dfmb5s_ygcEc5qyPSHuwpg%3DQTqyqWvGhwUUN16dNGgBpw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/2d0346d7-a0d3-c824-5791-b32073ae5e85%40chromium.org.