Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<title>Links should not fetch with no browsing context</title>
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
"use strict";
async_test(t => {
const doc = document.implementation.createHTMLDocument();
const link = document.createElement("link");
link.rel = "stylesheet";
link.onload = t.unreached_func("load event must not be fired");
link.onerror = t.unreached_func("error event must not be fired");
doc.head.appendChild(link);
t.step_timeout(() => t.done(), 200);
}, "no load or error events");
</script>