Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit 95c52bd

Browse files
author
Steven Orvell
committed
Use a nested template check to see if template cloning is broken.
1 parent 1428b00 commit 95c52bd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Template/Template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
var needsCloning = (function() {
1818
if (!needsTemplate) {
1919
var t = document.createElement('template');
20-
t.innerHTML = '<div></div>';
20+
t.innerHTML = '<template><div></div></template>';
2121
var clone = t.cloneNode(true);
22-
return (clone.content.childNodes.length === 0);
22+
return (clone.content.firstChild.content.childNodes.length == 0);
2323
}
2424
})();
2525

0 commit comments

Comments
 (0)