Description
Describe the bug
Svelte compiler fails to handle {@html} inside <textarea>
tags
Logs
No output in browser console. Compiler throws error Unexpected character '@' (7:11)
To Reproduce
https://svelte.dev/repl/001f72ee82ac4115920eaf086d785584
Expected behavior
The compiler compiles the code successfully, the output <textarea>
contains the child HTML elements in the string.
Stacktraces
N/A
Information about your Svelte project:
-
Your browser and the version: Firefox 82, Chrome 86 (doesn't matter)
-
Your operating system: Windows 10 (doesn't matter)
-
Svelte version: 3.29.4
-
Whether your project uses Webpack or Rollup: None, as I used Snowpack in dev mode.
Severity
Low. I was able to use <div>
instead for my use case.
Additional context
I was trying to integrate TinyMCE editor into my Svelte app. On the surface, TinyMCE uses <textarea> and the content to be edited must be children of that <textarea>
. But upon reading through their docs (it's a bit unclear) turns out <div>
can be used too, so that's my solution for the time being.