Class HTMLAllCollection

java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
All Implemented Interfaces:
Serializable, 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:
  • Constructor Details

    • HTMLAllCollection

      public HTMLAllCollection()
      Creates an instance.
    • HTMLAllCollection

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

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class HTMLCollection
    • item

      public Object item(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:
    • namedItem

      public final Object namedItem(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:
    • call

      public Object call(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, 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