Class NameNodeListImpl

  • All Implemented Interfaces:
    org.w3c.dom.NodeList

    public class NameNodeListImpl
    extends DeepNodeListImpl
    This class implements the DOM's NodeList behavior for HTMLDocuemnt.getElementsByName().
    See Also:
    DeepNodeListImpl
    • Constructor Detail

      • NameNodeListImpl

        public NameNodeListImpl​(NodeImpl rootNode,
                                java.lang.String tagName)
        Constructor.
    • Method Detail

      • nextMatchingElementAfter

        protected org.w3c.dom.Node nextMatchingElementAfter​(org.w3c.dom.Node current)
        Iterative tree-walker. When you have a Parent link, there's often no need to resort to recursion. NOTE THAT only Element nodes are matched since we're specifically supporting getElementsByTagName().
        Overrides:
        nextMatchingElementAfter in class DeepNodeListImpl
        Parameters:
        current - the current node
        Returns:
        next node