DomTemplate
DomTemplate copied to clipboard
Presence of data-template, without binding a list, should leave the parent "empty"
When bindList is used, if the list is empty, the template parent will have all whitespace stripped so that CSS sees it as :empty.
This should be the case for simply having a data-template attribute on an element. Assuming there are no other children in the template parent, when the template item is removed from the DOM, the parent should have whitespace stripped so that if nothing is bound, css still sees the element as :empty.