SvgScriptElement Class

https://w3c.github.io/svgwg/svg2-draft/interact.html#svgscriptelement

public sealed class SvgScriptElement : SvgElement
Inheritance
SvgElement SvgScriptElement

Properties

NameDescription
AsyncWhether the script is executed as soon as possible (https://html.spec.whatwg.org/multipage/scripting.html#dom-script-async): the async attribute of the HTML script elements, which the browsers also apply to the SVG ones.
CrossOriginhttps://svgwg.org/svg2-draft/interact.html#__svg__SVGScriptElement__crossOrigin
HrefGets the href attribute as a SVGAnimatedString object.
ReferrerPolicyhttps://svgwg.org/svg2-draft/interact.html#__svg__SVGScriptElement__referrerPolicy
TypeGets or sets the value of the type content attribute.
  • Experimental (WEBPLATEXP0020)

Whether the script is executed as soon as possible (https://html.spec.whatwg.org/multipage/scripting.html#dom-script-async): the async attribute of the HTML script elements, which the browsers also apply to the SVG ones.

[Experimental("WEBPLATEXP0020", UrlFormat = "https://github.com/meziantou/Meziantou.Framework/blob/main/src/Meziantou.Framework.WebPlatform/docs/experimental-apis.md#{0}")]
public bool Async { get; set; }

CrossOrigin

SvgElements.cs

https://svgwg.org/svg2-draft/interact.html#__svg__SVGScriptElement__crossOrigin

public string? CrossOrigin { get; set; }

Gets the href attribute as a SVGAnimatedString object.

public SvgAnimatedString Href { get; }

ReferrerPolicy

SvgElements.cs

https://svgwg.org/svg2-draft/interact.html#__svg__SVGScriptElement__referrerPolicy

public string ReferrerPolicy { get; set; }

Gets or sets the value of the type content attribute.

public string Type { get; set; }