-
Notifications
You must be signed in to change notification settings - Fork 25
Avoid using nested templates when setting innerHTML #411
Avoid using nested templates when setting innerHTML #411
Conversation
You on on point! We were just about to tackle this issue only to find that you've fixed it already with our proposed solution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(temporary "request changes" to block merge while I do some additional checks. Otherwise this looks good)
]; | ||
} | ||
const setDisplayNoneStatment = jsc.expressionStatement(jsc.callExpression( | ||
const setDisplayNoneStatement = jsc.expressionStatement(jsc.callExpression( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍻
@@ -540,7 +540,7 @@ export function createDomNodeInsertStatements( | |||
jsc.callExpression( | |||
jsc.memberExpression( | |||
jsc.identifier('document'), jsc.identifier('createElement')), | |||
[jsc.literal('div')]))]); | |||
[jsc.literal('template')]))]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checks pass
Thanks @web-padawan ! |
Fixes #410 by applying the change from Polymer/polymer#5210
This change is