Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<div id="testdiv">blocked</div>
<script nonce="foo">
var dynamicScript = document.createElement('script');
dynamicScript.textContent = 'document.getElementById("testdiv").textContent="allowed"';
document.head.appendChild(dynamicScript);
</script>
</body>
</html>