Skip to content

Commit

Permalink
check for HTMLTemplateElement existence properly before using.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Orvell committed Apr 12, 2013
1 parent 4e3ed4a commit 24283ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HTMLImports.js
Expand Up @@ -242,7 +242,7 @@ var path = {
resolvePathsInHTML: function(inRoot) {
var docUrl = path.documentUrlFromNode(inRoot.body);
// TODO(sorvell): MDV Polyfill Intrusion
if (HTMLTemplateElement && HTMLTemplateElement.bootstrap) {
if (window.HTMLTemplateElement && HTMLTemplateElement.bootstrap) {
HTMLTemplateElement.bootstrap(inRoot);
}
var node = inRoot.body;
Expand Down

0 comments on commit 24283ed

Please sign in to comment.