We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90199f3 commit 4c66214Copy full SHA for 4c66214
lib/utils/html-tag.html
@@ -52,12 +52,9 @@
52
* @return {!HTMLTemplateElement} Constructed HTMLTemplateElement
53
*/
54
Polymer.html = function html(strings, ...values) {
55
- // use raw strings to preserve literal escapes in strings
56
- /** @type {!Array<string>} */
57
- const rawStrings = strings.raw;
58
const template = /** @type {!HTMLTemplateElement} */(document.createElement('template'));
59
template.innerHTML = values.reduce((acc, v, idx) =>
60
- acc + htmlValue(v) + rawStrings[idx + 1], rawStrings[0]);
+ acc + htmlValue(v) + strings[idx + 1], strings[0]);
61
return template;
62
};
63
})();
0 commit comments