Add Script get/set nonce

This commit is contained in:
Karl Seguin
2025-09-12 18:42:34 +08:00
parent 6d3065c4c6
commit f3ce5dcfbd
2 changed files with 19 additions and 0 deletions

View File

@@ -11,4 +11,8 @@
script.defer = true;
testing.expectEqual(true, script.defer);
testing.expectEqual('', script.nonce);
script.nonce = 'hello';
testing.expectEqual('hello', script.nonce);
</script>