Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html class="reftest-wait">
<title>Test dynamic change of the href attribute</title>
<link rel="match" href="dynamic-href-001.tentative-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>