<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>331037</bug_id>
          
          <creation_ts>2026-11-10 17:12:11 -0800</creation_ts>
          <short_desc>Add crossOrigin IDL attribute to SVGScriptElement</short_desc>
          <delta_ts>2026-11-11 19:26:54 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>Safari 26</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=327370</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=260724</see_also>
    
    <see_also>https://github.com/web-platform-tests/wpt/pull/65072</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="Karl Dubost">karlcow</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2277675</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-11-10 17:12:11 -0800</bug_when>
    <thetext>SVG 2 gives `SVGScriptElement` a `crossOrigin` IDL attribute that reflects the `crossorigin` content attribute, with the processing rules of HTML `&lt;script&gt;`:

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:

```js
const s = document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;, &quot;script&quot;);
s.setAttribute(&quot;crossorigin&quot;, &quot;use-credentials&quot;);
s.crossOrigin; // undefined, expected &quot;use-credentials&quot;
```

`svg/idlharness.window.html` fails on it:

```
FAIL SVGScriptElement interface: attribute crossOrigin
FAIL SVGScriptElement interface: objects.script must inherit property &quot;crossOrigin&quot; with the proper type
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2277676</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-11-10 17:13:07 -0800</bug_when>
    <thetext>&lt;rdar://problem/192415340&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2277700</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-11-10 18:06:00 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/80422</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2278394</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-11-11 17:20:47 -0800</bug_when>
    <thetext>Committed 326474@main (45993932a33d): &lt;https://commits.webkit.org/326474@main&gt;

Reviewed commits have been landed. Closing PR #80422 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2278440</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-11-11 19:26:54 -0800</bug_when>
    <thetext>Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/65072</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>