Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/utils.js"></script>
<title>Blocking link added in the body has no effect</title>
<script>
async_test((t) => {
requestAnimationFrame(() => {
t.step(() => assert_false(!!document.getElementById("last")));
t.done();
});
}, "link in the body has no effect");
</script>
</head>
<body>
<link rel=expect href="#last" blocking="render">
<script>
let link = document.createElement("link");
link.rel = "rel";
link.href = "#last";
link.blocking = "render";
document.head.appendChild(link);
</script>
<div id="first"></div>
<script>
generateParserDelay();
</script>
<div id="second"></div>
<script>
generateParserDelay();
</script>
<div id="last"></div>
</body>