A collection of nodes returned by Node.attributes (also potentially for
DocumentType.entities, DocumentType.notations). NamedNodeMaps are not in any
particular order (unlike NodeList, although they may be accessed by an index as in
an array (they may also be accessed with the item method). A NamedNodeMap object are
live and will thus be auto-updated if changes are made to their contents internally
or elsewhere.
A collection of nodes returned by Node.attributes (also potentially for DocumentType.entities, DocumentType.notations). NamedNodeMaps are not in any particular order (unlike NodeList, although they may be accessed by an index as in an array (they may also be accessed with the item method). A NamedNodeMap object are live and will thus be auto-updated if changes are made to their contents internally or elsewhere.
MDN