Class HTMLLinkElement

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 HTMLLinkElement extends HTMLElement
The JavaScript object HTMLLinkElement.
See Also:
  • Field Details

    • LOG

      private static final org.apache.commons.logging.Log LOG
    • sheet_

      private CSSStyleSheet sheet_
      The associated style sheet (only valid for links of type <link rel="stylesheet" type="text/css" href="..." />).
  • Constructor Details

    • HTMLLinkElement

      public HTMLLinkElement()
      Creates an instance.
  • Method Details

    • jsConstructor

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

      public HtmlLink getDomNodeOrDie()
      Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.
      Overrides:
      getDomNodeOrDie in class HTMLElement
      Returns:
      the DOM node
    • setHref

      public void setHref(String href)
      Sets the href property.
      Parameters:
      href - href attribute value
    • getHref

      public String getHref()
      Returns the value of the href property.
      Returns:
      the href property
    • setRel

      public void setRel(String rel)
      Sets the rel property.
      Parameters:
      rel - rel attribute value
    • getRel

      public String getRel()
      Returns the value of the rel property.
      Returns:
      the rel property
    • setRev

      public void setRev(String rel)
      Sets the rev property.
      Parameters:
      rel - rev attribute value
    • getRev

      public String getRev()
      Returns the value of the rev property.
      Returns:
      the rev property
    • setType

      public void setType(String type)
      Sets the type property.
      Parameters:
      type - type attribute value
    • getType

      public String getType()
      Returns the value of the type property.
      Returns:
      the type property
    • getSheet

      public CSSStyleSheet getSheet()
      Returns the associated style sheet (only valid for links of type <link rel="stylesheet" type="text/css" href="..." />).
      Returns:
      the associated style sheet
    • isEndTagForbidden

      protected boolean isEndTagForbidden()
      Returns whether the end tag is forbidden or not.
      Overrides:
      isEndTagForbidden in class HTMLElement
      Returns:
      whether the end tag is forbidden or not
      See Also:
    • getRelList

      public DOMTokenList getRelList()
      Returns the relList attribute.
      Returns:
      the relList attribute
    • setRelList

      public void setRelList(Object rel)
      Sets the relList property.
      Parameters:
      rel - attribute value
    • isDisabled

      public boolean isDisabled()
      Returns true if this element is disabled. Overridden to modify browser configurations.
      Overrides:
      isDisabled in class HTMLElement
      Returns:
      true if this element is disabled
    • setDisabled

      public void setDisabled(boolean disabled)
      Sets whether or not to disable this element. Overridden to modify browser configurations.
      Overrides:
      setDisabled in class HTMLElement
      Parameters:
      disabled - True if this is to be disabled