diff --git a/lib/mixins/template-stamp.html b/lib/mixins/template-stamp.html
index da679f742f..11472e16f6 100644
--- a/lib/mixins/template-stamp.html
+++ b/lib/mixins/template-stamp.html
@@ -16,7 +16,8 @@
'use strict';
- const walker = document.createTreeWalker(document);
+ const walker = document.createTreeWalker(document, NodeFilter.SHOW_ALL,
+ null, false);
// 1.x backwards-compatible auto-wrapper for template type extensions
// This is a clear layering violation and gives favored-nation status to