You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is exected behaviour, <p> tag can not have child <div> (and other blocks too) so <p><div></div></p> is parsed as <p></p><div></div></p> and as you can see it's more than one root element. That's HTML limitations.
Version
2.4.1
Reproduction link
https://jsfiddle.net/k5h2fvqh/
Steps to reproduce
<p>
tag as Root element<div>
tag as child elementWhat is expected?
Render template correctly
What is actually happening?
Error compiling template with message "Component template should contain exactly one root element"
The text was updated successfully, but these errors were encountered: