feat(renderer): use a comment instead of an element when stamping out template>` elements
Originally authored by @tbosch, this reverts the revert commit
e274ff8a69.
Closes #4805
This commit is contained in:
committed by
Victor Savkin
parent
79399e1c51
commit
194dc7da78
@@ -19,7 +19,7 @@ var _allViewsById = new Map<number, AppView>();
|
||||
var _nextId = 0;
|
||||
|
||||
function _setElementId(element, indices: number[]) {
|
||||
if (isPresent(element)) {
|
||||
if (isPresent(element) && DOM.isElementNode(element)) {
|
||||
DOM.setData(element, NG_ID_PROPERTY, indices.join(NG_ID_SEPARATOR));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user