JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host.html

Class HTMLLinkElement

    • Constructor Detail

      • HTMLLinkElement

        public HTMLLinkElement()
    • Method Detail

      • 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:
        HTML 4 specs
      • 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
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /