Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/linking/scripted/a.rel-noreferrer-policy.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="author" title="Divyansh Mangal" href="mailto:dmangal@microsoft.com">
<title> Rel attribute with noreferrer value </title>
<body>
<script>
// The link is in an iframe, because a test must not navigate its own top level
// browsing context.
async_test(t => {
window.addEventListener("message", t.step_func_done(event => {
assert_equals(event.data, "");
}));
const iframe = document.createElement("iframe");
iframe.src = "resources/a.rel-noreferrer-policy-frame.html";
document.body.appendChild(iframe);
}, "No Referrer policy attribute on svg anchor element is applied");
</script>