2.4.1
https://jsfiddle.net/k5h2fvqh/
<p> tag as Root element<div> tag as child elementRender template correctly
Error compiling template with message "Component template should contain exactly one root element"
Here's minimal repro: https://jsfiddle.net/gq2ckLLf/
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.
P.S. More information available here
Complete list of elements that "close" <p> is available here
Most helpful comment
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.P.S. More information available here