Class HTMLAllCollection

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.htmlunit.corejs.javascript.Callable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.ExternalArrayData, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

    public class HTMLAllCollection
    extends HTMLCollection
    A special HTMLCollection for document.all.
    See Also:
    Serialized Form
    • Constructor Detail

      • HTMLAllCollection

        public HTMLAllCollection()
        Creates an instance.
      • HTMLAllCollection

        public HTMLAllCollection​(DomNode parentScope)
        Creates an instance.
        Parameters:
        parentScope - parent scope
    • Method Detail

      • item

        public java.lang.Object item​(java.lang.Object index)
        Returns the item or items corresponding to the specified index or key.
        Overrides:
        item in class HTMLCollection
        Parameters:
        index - the index or key corresponding to the element or elements to return
        Returns:
        the element or elements corresponding to the specified index or key
        See Also:
        MSDN doc
      • namedItem

        public final java.lang.Object namedItem​(java.lang.String name)
        Retrieves the item or items corresponding to the specified name (checks ids, and if that does not work, then names).
        Overrides:
        namedItem in class HTMLCollection
        Parameters:
        name - the name or id the element or elements to return
        Returns:
        the element or elements corresponding to the specified name or id
        See Also:
        MSDN doc
      • call

        public java.lang.Object call​(org.htmlunit.corejs.javascript.Context cx,
                                     org.htmlunit.corejs.javascript.Scriptable scope,
                                     org.htmlunit.corejs.javascript.Scriptable thisObj,
                                     java.lang.Object[] args)
        Specified by:
        call in interface org.htmlunit.corejs.javascript.Callable
        Overrides:
        call in class HTMLCollection
      • supportsParentheses

        protected boolean supportsParentheses()
        Is parentheses supported.
        Overrides:
        supportsParentheses in class HTMLCollection
        Returns:
        true or false