Re: [whatwg/dom] Define XPath's lang() as ASCII case-insensitive (Issue #1199)

Is this intended to be a change to all uses of XPath (including those from XSLT) or only those from [the DOM APIs](https://dom.spec.whatwg.org/#xpath)?

Also, is the matching intended to follow RFC4647 like [selectors does](https://www.w3.org/TR/selectors-4/#the-lang-pseudo)?  [Chromium's current matching code](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/xml/xpath_functions.cc;l=626-656;drc=68594dfc541e3bb022c5064cf62b73cc2c9dfd3d) and [Gecko's current matching code](https://searchfox.org/mozilla-central/rev/10f46c9c638e0e5935ed9fa12aadc9d0d4e71ade/dom/xslt/xpath/txCoreFunctionCall.cpp#546-572) appear to do a more naive matching of an initial hyphen-separated sequence.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1199#issuecomment-2029792355
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1199/2029792355@github.com>

Received on Monday, 1 April 2024 13:52:09 UTC