This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Wrapping root text elements of $compile in span causes issues #1059
Closed
Metadata
Metadata
Assignees
Labels
No labels
Activity
cristatus commentedon Jul 6, 2012
At least empty nodes should be ignored.
boneskull commentedon Jul 13, 2012
I'm having this issue as well. This code fixes the problem. Thanks!
woeye commentedon Jan 8, 2013
Yeah, transcluding a more complex body of an element (and not just some hello world stuff) results currently in a huge bloat of empty spans. If you care about your markup (and you should) this issue is really a no go.
fix($compile): do not wrap empty root text nodes in spans
fix($compile): do not wrap empty root text nodes in spans
fix($compile): do not wrap empty root text nodes in spans