-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{@html html-string} replacing tr,td tags #4852
Comments
It looks like this happened between 3.6.11 and 3.7.0 as a result of #3329. I'm not sure what can reasonably be done about this. The newer way of handling |
What if instead of creating a |
In the meantime, here's a workaround which uses |
As an alternative to using e.g. -html_tag = new HtmlTag(/*html_data*/ ctx[0], null);
+html_tag = new HtmlTag(/*html_data*/ ctx[0], null, 'tbody'); That would require the compiler to know the parent element type at runtime, which precludes top-level |
FYI have implemented the proposed alternative in #4863 |
This is fixed in 3.23.0 - https://svelte.dev/repl/dee930a465e14a31baa1846003463e12?version=3.23.0 |
If a table's tbody has an existing tr element and we place another tr before it using @html tag,
the tags tr, td are stripped.
To Reproduce
Please see here:
https://svelte.dev/repl/dee930a465e14a31baa1846003463e12?version=3.22.3
Thanks
The text was updated successfully, but these errors were encountered: