Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
<meta http-equiv="Content-Security-Policy" content="script-src-attr 'nonce-abc'
<script src="/resources/testharness.js" nonce="abc"></script>
<script src="/resources/testharnessreport.js" nonce="abc"></script>
<script src="support/helper.js" nonce="abc"></script>
<script nonce="abc">
// script-src-attr CSP should not have effects because navigation CSP
// checks are done against script-src-elem.
runTest(true, '<a href target=_blank>', ' (script-src-attr should not be used)');