зеркало из https://github.com/mozilla/gecko-dev.git
23 строки
409 B
HTML
23 строки
409 B
HTML
|
<!DOCTYPE HTML>
|
||
|
<html class="reftest-wait">
|
||
|
<head>
|
||
|
<style>
|
||
|
body::before {
|
||
|
content:attr(my-attr);
|
||
|
}
|
||
|
body::after {
|
||
|
content:attr(my-attr-2);
|
||
|
}
|
||
|
</style>
|
||
|
<script>
|
||
|
function fixupDOM() {
|
||
|
document.body.setAttribute("my-attr", "before");
|
||
|
document.body.setAttribute("my-attr-2", "after");
|
||
|
document.documentElement.className = "";
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body my-attr-2="xyz" onload="fixupDOM()">
|
||
|
</body>
|
||
|
</html>
|