]> git.kaiwu.me - njs.git/commit
XML: add namespace-aware node accessors
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 25 Sep 2026 01:34:22 +0000 (18:34 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Tue, 29 Sep 2026 20:48:28 +0000 (13:48 -0700)
commit96501ae3a6acb17e97f2223302e6f864d841e0bd
tree9c7f196db182ef7dfc131a09aa9537733ecc1ee7
parent9f6518fc35d166a3cc41d0182a151baadc8ab920
XML: add namespace-aware node accessors

The existing $attr$name and $tag$name accessors compare local names
only, so x:ID and ID, or x:Issuer and Issuer, are indistinguishable.

The new XMLNode methods getAttributeNS(namespaceURI, localName) and
getChildNS(namespaceURI, localName) match both the namespace URI and
the local name.
external/njs_xml_module.c
external/qjs_xml_module.c
test/ts/test.ts
test/xml/xml.t.mjs
ts/njs_modules/xml.d.ts