-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
Description
Describe the bug
Attempting to write the following:
<p>{@html foo}<br>bar</p>
Will fail with (under Firefox):
NoModificationAllowedError: Modifications are not allowed for this document
However, adding whitespace after the }
makes the error disappear, such as a newline or just a space:
<p>{@html foo} <br>bar</p>
Logs
NoModificationAllowedError: Modifications are not allowed for this document (bundle.js:1)
To Reproduce
Please paste the following code into https://svelte.dev/repl:
<script>
let foo = 'foo<br>bar';
</script>
<p>{@html foo}<br>baz</p>
Expected behavior
It should work, as if I had written the space after the }
.
Information about your Svelte project:
- Firefox 68.0.1 (64-bit)
- Linux Mint 19.1 Tessa x86_64, kernel 4.15.0-55-generic
- Svelte version 3.0.0
- Using Webpack
Severity
Low, but can trip other people.
Additional context
Loving this frameless framework :)