Skip to content

Commit

Permalink
Update info for svg <script> element
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Jan 6, 2025
1 parent f65bc68 commit bca90a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/svg/element/script/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ Click the circle to change colors.

- [`crossorigin`](/en-US/docs/Web/HTML/Element/script#crossorigin)
- : This attribute defines [CORS settings](/en-US/docs/Web/HTML/Attributes/crossorigin) as define for the HTML {{HTMLElement('script')}} element.
_Value type_: [**\<string>**](/en-US/docs/Web/CSS/string); _Default value_: `?`; _Animatable_: **yes**
_Value type_: [**[ anonymous | use-credentials ]?**](/en-US/docs/Web/CSS/string); _Default value_: `?`; _Animatable_: **yes**
- {{SVGAttr("href")}}
- : The {{Glossary("URL")}} to the script to load.
_Value type_: **[\<URL>](/en-US/docs/Web/SVG/Content_type#url)** ; _Default value_: _none_; _Animatable_: **no**
- {{SVGAttr("type")}}
- : This attribute defines type of the script language to use.
_Value type_: [**\<string>**](/en-US/docs/Web/CSS/string); _Default value_: `application/ecmascript`; _Animatable_: **no**
_Value type_: [**`<media-type>`**](/en-US/docs/Glossary/MIME_type); _Default value_: `application/ecmascript`; _Animatable_: **no**
- {{SVGAttr("xlink:href")}} {{deprecated_inline}}
- : The {{Glossary("URL")}} to the script to load.
_Value type_: **[\<URL>](/en-US/docs/Web/SVG/Content_type#url)** ; _Default value_: _none_; _Animatable_: **no**
Expand Down
3 changes: 2 additions & 1 deletion files/jsondata/SVGData.json
Original file line number Diff line number Diff line change
Expand Up @@ -1329,8 +1329,9 @@
"attributes": [
"coreAttributes",
"xLinkAttributes",
"'externalResourcesRequired'",
"'type'",
"'href'",
"'crossorigin'",
"'xlink:href'"
],
"interfaces": ["SVGScriptElement"]
Expand Down

0 comments on commit bca90a7

Please sign in to comment.