Local name of a DOM element (the part after the : prefix). For nodes
built by @xmldom this is localName; the helper exists so call sites
read self-documenting and so we have one place to fall back to nodeName
if a future parser swap returns null.
Returns lower-cased name when lowercase is true (matches the Python
source's tag.split('}')[-1].lower() idiom used in unique-ID checks).
Local name of a DOM element (the part after the
:prefix). For nodes built by@xmldomthis islocalName; the helper exists so call sites read self-documenting and so we have one place to fall back tonodeNameif a future parser swap returnsnull.Returns lower-cased name when
lowercaseis true (matches the Python source'stag.split('}')[-1].lower()idiom used in unique-ID checks).