gecko-dev/layout/reftests/generated-content/dynamic-attr-01.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>