Module org.htmlunit

Class HtmlMeta

All Implemented Interfaces:
Serializable, Cloneable, Element, Node

public class HtmlMeta extends HtmlElement
Wrapper for the HTML element "meta".
Author:
Mike Bowler, Christian Sell, Ahmed Ashour, Frank Danek, Ronald Brill
See Also:
  • Field Details

  • Method Details

    • onAllChildrenAddedToPage

      public void onAllChildrenAddedToPage(boolean postponed)
      Lifecycle method invoked after a node and all its children have been added to a page, during parsing of the HTML. Intended to be overridden by nodes which need to perform custom logic after they and all their child nodes have been processed by the HTML parser. This method is not recursive, and the default implementation is empty, so there is no need to call super.onAllChildrenAddedToPage() if you implement this method. Applies a Content-Security-Policy defined by this element; like in browsers this is only done if the element is a child of the head element.
      Overrides:
      onAllChildrenAddedToPage in class DomNode
      Parameters:
      postponed - whether to use PostponedAction or no
    • mayBeDisplayed

      public boolean mayBeDisplayed()
      Returns true if nodes of this type can ever be displayed, false otherwise. Examples of nodes that can never be displayed are <head>, <meta>, <script>, etc.
      Overrides:
      mayBeDisplayed in class DomNode
      Returns:
      true if nodes of this type can ever be displayed, false otherwise
      See Also:
    • getHttpEquivAttribute

      public final String getHttpEquivAttribute()
      Returns the value of the attribute http-equiv. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute http-equiv or an empty string if that attribute isn't defined.
    • getNameAttribute

      public final String getNameAttribute()
      Returns the value of the attribute name. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute name or an empty string if that attribute isn't defined.
    • getContentAttribute

      public final String getContentAttribute()
      Returns the value of the attribute content. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute content or an empty string if that attribute isn't defined.
    • getSchemeAttribute

      public final String getSchemeAttribute()
      Returns the value of the attribute scheme. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute scheme or an empty string if that attribute isn't defined.
    • getDefaultStyleDisplay

      public HtmlElement.DisplayStyle getDefaultStyleDisplay()
      INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
      Returns the default display style.
      Overrides:
      getDefaultStyleDisplay in class HtmlElement
      Returns:
      the default display style