Files
sousa-gecko/testing/web-platform/tests/mathml/relations/html5-tree/dynamic-href-001.html
T
Frédéric Wang Nélar 4fc85f6692 Bug 2038979 [wpt PR 59814] - Untentative MathML html5-tree tests., a=testonly
Automatic update from web-platform-tests
Untentative MathML html5-tree tests.

```
for file in $(ls *tentative*.html); do \
  sed -i 's/.tentative//g' $file; git add $file; \
  git mv $file $(echo $file | sed s/.tentative//); \
done
```

--

wpt-commits: 6f36540337608fb2b592212dfb0705f3ea2ace9a
wpt-pr: 59814
2026-05-14 20:45:55 +00:00

30 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<title>Test dynamic change of the href attribute</title>
<link rel="help" href="https://w3c.github.io/mathml-core/#attributes-common-to-html-and-mathml-elements">
<link rel="help" href="https://w3c.github.io/mathml-core/#dom-and-javascript">
<link rel="help" href="https://github.com/w3c/mathml-core/issues/142">
<link rel="match" href="dynamic-href-001-ref.html"/>
<script>
document.documentElement.addEventListener("TestRendered", () => {
// Attach the href attribute to the link element.
document.getElementById("link").setAttribute("href", "about:blank");
document.documentElement.removeAttribute("class");
});
</script>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
#link { color: red; }
#link:link { margin: 10px; color: green; }
mtext { font: 25px/1 Ahem; }
</style>
<math>
<mfrac>
<a id="link" width="50px" height="50px" style="background: blue">
<mtext>XXX</mtext>
</a>
<mtext>XXX</mtext>
</mfrac>
</math>
</html>