docx-validate
    Preparing search index...

    Function getLocalName

    • 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).

      Parameters

      • elem: Element
      • lowercase: boolean = false

      Returns string