Firefox Tomorrow

web api interface

SVGScriptElement

View on MDN ↗

The SVGScriptElement interface corresponds to the SVG <script> element.

Instance properties

  • async
    • : A boolean reflecting the async attribute of the given <script> element. It indicates whether the script should be executed asynchronously.
  • crossOrigin
    • : A string reflecting the crossorigin attribute of the given <script> element. It is a CORS settings attribute.
  • defer Experimental
    • : A boolean reflecting the defer attribute of the given <script> element. It indicates whether the script should be executed after the document has been parsed.
  • href Read only
  • type Read only
    • : A string corresponding to the type attribute of the given <script> element. A DOMException is raised with the code NO_MODIFICATION_ALLOWED_ERR on an attempt to change the value of a read-only attribute.

Instance methods

This interface doesn’t implement any specific methods, but inherits methods from its parent interface, SVGElement.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also