Files
sousa-gecko/testing/web-platform/tests/svg/interact/scripted/async-04.html
T
Karl Dubost 34126bd0d4 Bug 2031535 [wpt PR 59066] - Fix #59047 - fix SVG fresh specs links, a=testonly
Automatic update from web-platform-tests
Fix #59047 - fix SVG fresh specs links

--

wpt-commits: bc058f342f2aed8c63fdb6f0f35249952d076eb7
wpt-pr: 59066
2026-04-23 10:10:37 +00:00

23 lines
775 B
HTML

<html>
<head>
<title>Check async script state matches attribute</title>
<link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/interact.html#ScriptElement"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<svg>
<script id="script" async href="data:text/javascript, // Do nothing."></script>
<script>
test(function() {
let script = document.getElementById("script");
script.remove();
assert_true(script.async, "script is async");
script.removeAttribute("async");
assert_false(script.async, "script is no longer async");
}, "async script state");
</script>
</svg>
</body>
</html>