<script> with type="module" doesn't work when placed inside <svg> element
Categories
(Core :: SVG, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox117 | --- | fixed |
People
(Reporter: daniel.s.brinkmann, Assigned: longsonr)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Steps to reproduce:
placed a <script> with type="module" inside an inline svg
Actual results:
nothing - the code wasn't executed
Expected results:
code should have run
Assignee | ||
Comment 1•6 months ago
|
||
What specification says that? What do other browsers do?
Reporter | ||
Comment 2•6 months ago
|
||
Chrome and Safari executes the code as if it was placed outside the <svg>. I do not know if any specification mentions it explicitly.
Comment 3•6 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::SVG' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Assignee | ||
Comment 4•6 months ago
|
||
Updated•6 months ago
|
Updated•5 months ago
|
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/21669d226d64 support async defer and module scripts r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/40905 for changes under testing/web-platform/tests
Assignee | ||
Updated•5 months ago
|
Comment 7•5 months ago
|
||
bugherder |
Upstream PR merged by moz-wptsync-bot
Updated•4 months ago
|
Comment 9•4 months ago
|
||
Changes (relnote only) on MDN can be tracked in the following GitHub issue: https://github.com/mdn/content/issues/28294
Description
•