JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host

Class NamedNodeMap

    • Constructor Detail

      • NamedNodeMap

        public NamedNodeMap()
        We need default constructors to build the prototype instance.
      • NamedNodeMap

        public NamedNodeMap(DomElement element)
        Creates a new named node map for the specified element.
        Parameters:
        element - the owning element
    • Method Detail

      • jsConstructor

        public void jsConstructor()
        JavaScript constructor.
      • getNamedItemWithoutSytheticClassAttr

        public HtmlUnitScriptable getNamedItemWithoutSytheticClassAttr(String name)
        INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
        Gets the specified attribute but does not handle the synthetic class attribute for IE.
        Parameters:
        name - attribute name
        Returns:
        the attribute node, null if the attribute is not defined
        See Also:
        getNamedItem(String)
      • getNamedItem

        public HtmlUnitScriptable getNamedItem(String name)
        Gets the specified attribute.
        Parameters:
        name - attribute name
        Returns:
        the attribute node, null if the attribute is not defined
      • getNamedItemNS

        public Node getNamedItemNS(String namespaceURI,
         String localName)
        Gets the specified attribute.
        Parameters:
        namespaceURI - the namespace URI of the node to retrieve.
        localName - the local name of the node to retrieve.
        Returns:
        the attribute node, null if the attribute is not defined
      • setNamedItem

        public void setNamedItem(Node node)
        Sets the specified attribute.
        Parameters:
        node - the attribute
      • setNamedItemNS

        public void setNamedItemNS(Node node)
        Sets the specified attribute.
        Parameters:
        node - the attribute
      • removeNamedItem

        public void removeNamedItem(String name)
        Removes the specified attribute.
        Parameters:
        name - the name of the item to remove
      • removeNamedItemNS

        public Attr removeNamedItemNS(String namespaceURI,
         String localName)
        Removes the specified attribute.
        Parameters:
        namespaceURI - the namespace URI of the node to retrieve.
        localName - the local name of the node to retrieve.
        Returns:
        the attribute node, null if the attribute is not defined
      • item

        public HtmlUnitScriptable item(int index)
        Returns the item at the specified index.
        Parameters:
        index - the index
        Returns:
        the item at the specified index
      • getLength

        public int getLength()
        Returns the number of attributes in this named node map.
        Returns:
        the number of attributes in this named node map
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /