Class Script

    • Constructor Detail

      • Script

        public Script()
      • Script

        public Script​(java.lang.String content)
    • Method Detail

      • isAsync

        public boolean isAsync()
        Returns the async of this script tag.

        Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

        Since:
        8.0.3
      • setAsync

        public void setAsync​(boolean async)
                      throws WrongValueException
        Sets the async of this script tag.

        Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

        Throws:
        WrongValueException
        Since:
        8.0.3
      • getCharset

        public java.lang.String getCharset()
        Returns the charset of this script tag.
        Since:
        8.0.3
      • isDefer

        public boolean isDefer()
        Returns the defer of this script tag.
        Since:
        8.0.3
      • getSrc

        public java.lang.String getSrc()
        Returns the src of this script tag.
        Since:
        8.0.3
      • getType

        public java.lang.String getType()
        Returns the type of this script tag.
        Since:
        8.0.3
      • getCrossorigin

        public java.lang.String getCrossorigin()
        Returns the crossorigin of this tag.
        Since:
        10.0.0
      • getIntegrity

        public java.lang.String getIntegrity()
        Returns the integrity of this tag.
        Since:
        10.0.0
      • isNomodule

        public boolean isNomodule()
        Returns the nomodule of this tag.
        Since:
        10.0.0
      • getReferrerpolicy

        public java.lang.String getReferrerpolicy()
        Returns the referrerpolicy of this tag.
        Since:
        10.0.0
      • setReferrerpolicy

        public void setReferrerpolicy​(java.lang.String referrerpolicy)
                               throws WrongValueException
        Sets the referrerpolicy of this tag.
        Throws:
        WrongValueException
        Since:
        10.0.0
      • getNonce

        public java.lang.String getNonce()
        Returns the nonce of this tag.
        Since:
        10.0.0