Skip to content

Conversation

@badwriter123
Copy link
Contributor

@badwriter123 badwriter123 commented Nov 21, 2025

Fix #42026

Description

Hello,.

For the file --> files/en-us/web/svg/reference/attribute/crossorigin/index.md

  1. Updated the SVG crossorigin file to include the <script> alongside and .
  2. Also added the corresponding browser-compat entry for the svg.elements.script.crossorigin.

Thank You ... 😊

@badwriter123 badwriter123 requested a review from a team as a code owner November 21, 2025 14:10
@badwriter123 badwriter123 requested review from chrisdavidmills and removed request for a team November 21, 2025 14:10
@github-actions github-actions bot added Content:SVG SVG docs size/xs [PR only] 0-5 LoC changed labels Nov 21, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 21, 2025

Preview URLs

(comment last updated: 2025-11-21 14:31:58)

@badwriter123
Copy link
Contributor Author

badwriter123 commented Nov 21, 2025

FYI - The compat table now displays " svg.elements.script.crossorigin " , but BCD does not have that subfeature yet, so the table is rendering empty. Once we add " svg.elements.script.crossorigin " to BCD, the MDN page will display the data automatically.

Thank You 😊.

Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What you've done looks good, thanks @badwriter123!

I've just made one suggestion for a couple more minor improvements we could make while we are here.

---

The crossorigin attribute, valid on the {{SVGElement("image")}} and {{SVGElement("feImage")}} elements, provides support for configuration of the Cross-Origin Resource Sharing ([CORS](/en-US/docs/Web/HTTP/Guides/CORS)) requests for the element's fetched data.
The crossorigin attribute, valid on the {{SVGElement("image")}}, {{SVGElement("feImage")}} and {{SVGElement("script")}} elements, provides support for configuration of the Cross-Origin Resource Sharing ([CORS](/en-US/docs/Web/HTTP/Guides/CORS)) requests for the element's fetched data.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The crossorigin attribute, valid on the {{SVGElement("image")}}, {{SVGElement("feImage")}} and {{SVGElement("script")}} elements, provides support for configuration of the Cross-Origin Resource Sharing ([CORS](/en-US/docs/Web/HTTP/Guides/CORS)) requests for the element's fetched data.
The `crossorigin` attribute, valid on the {{SVGElement("image")}}, {{SVGElement("feImage")}}, and {{SVGElement("script")}} elements, provides support for configuration of Cross-Origin Resource Sharing ([CORS](/en-US/docs/Web/HTTP/Guides/CORS)) requests for the element's fetched data.

Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@badwriter123 Looking good, let's get this merged. I don't think it's a serious problem, but if you could get that BCD addition made too, we'd be even more grateful 😄

Thanks for your contribution.

@chrisdavidmills chrisdavidmills merged commit 367c501 into mdn:main Nov 21, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:SVG SVG docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

crossorigin should work for svg:script

2 participants