Class HTMLOutputElement

All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

public class HTMLOutputElement extends HTMLElement
The JavaScript object HTMLOutputElement.
See Also:
  • Field Details

    • labels_

      private NodeList labels_
      "Live" labels collection; has to be a member to have equality (==) working.
  • Constructor Details

    • HTMLOutputElement

      public HTMLOutputElement()
      Creates an instance.
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class HTMLElement
    • getName

      public String getName()
      Returns the name attribute.
      Overrides:
      getName in class HTMLElement
      Returns:
      the name attribute
    • setName

      public void setName(String name)
      Sets the name attribute.
      Overrides:
      setName in class HTMLElement
      Parameters:
      name - the name attribute
    • getForm

      public HTMLFormElement getForm()
      Returns the value of the JavaScript form attribute.
      Overrides:
      getForm in class HTMLElement
      Returns:
      the value of the JavaScript form attribute
    • getLabels

      public NodeList getLabels()
      Returns the labels associated with the element.
      Returns:
      the labels associated with the element
    • checkValidity

      public boolean checkValidity()
      Checks whether the element has any constraints and whether it satisfies them.
      Returns:
      if the element is valid
    • getValidity

      public ValidityState getValidity()
      Returns:
      a ValidityState with the validity states that this element is in.
    • getWillValidate

      public boolean getWillValidate()
      Returns:
      whether the element is a candidate for constraint validation
    • setCustomValidity

      public void setCustomValidity(String message)
      Sets the custom validity message for the element to the specified message.
      Parameters:
      message - the new message