mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
24 lines
757 B
HTML
24 lines
757 B
HTML
<link rel="stylesheet" href="./linked.css" />
|
|
<style>
|
|
.inline {
|
|
color: green;
|
|
}
|
|
</style>
|
|
<script type="module" src="./index.js"></script>
|
|
<p class="linked">direct</p>
|
|
<p class="inline">inline</p>
|
|
<p class="from-js">from-js</p>
|
|
<p class="dynamic">dynamic</p>
|
|
<p class="js">js: error</p>
|
|
<p class="dynamic-js">dynamic-js: error</p>
|
|
<p class="inline-js">inline-js: error</p>
|
|
<p class="double-nonce-js">double-nonce-js: error</p>
|
|
<script>
|
|
document.querySelector('.inline-js').textContent = 'inline-js: ok'
|
|
</script>
|
|
<script nonce="#$NONCE$#">
|
|
// this test case is to ensure that the nonce isn't being
|
|
// double-applied if an existing attribute is present.
|
|
document.querySelector('.double-nonce-js').textContent = 'double-nonce-js: ok'
|
|
</script>
|