or
https://bugs.webkit.org/show_bug.cgi?id=331037
SVG 2 gives SVGScriptElement a crossOrigin IDL attribute that reflects the crossorigin content attribute, with the processing rules of HTML <script>:
SVGScriptElement
crossOrigin
crossorigin
<script>
https://w3c.github.io/svgwg/svg2-draft/interact.html#ScriptElementCrossoriginAttribute https://w3c.github.io/svgwg/svg2-draft/interact.html#__svg__SVGScriptElement__crossOrigin
WebKit already honours the content attribute when fetching an SVG script (ScriptElement reads crossorigin for SVG and HTML scripts alike), but SVGScriptElement has no crossOrigin property:
ScriptElement
const s = document.createElementNS("http://www.w3.org/2000/svg", "script"); s.setAttribute("crossorigin", "use-credentials"); s.crossOrigin; // undefined, expected "use-credentials"
svg/idlharness.window.html fails on it:
svg/idlharness.window.html
FAIL SVGScriptElement interface: attribute crossOrigin FAIL SVGScriptElement interface: objects.script must inherit property "crossOrigin" with the proper type