Merge pull request #7574 from betagouv/US/patch-webcomponent-template
fix(ie11): @webcomponents used template interpolation
This commit is contained in:
commit
df85d51556
1 changed files with 13 additions and 0 deletions
13
patches/@webcomponents+template+1.5.0.patch
Normal file
13
patches/@webcomponents+template+1.5.0.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/node_modules/@webcomponents/template/template.js b/node_modules/@webcomponents/template/template.js
|
||||
index cebfac4..96e03e7 100644
|
||||
--- a/node_modules/@webcomponents/template/template.js
|
||||
+++ b/node_modules/@webcomponents/template/template.js
|
||||
@@ -323,7 +323,7 @@
|
||||
var defineOuterHTML = function defineOuterHTML(obj) {
|
||||
Object.defineProperty(obj, 'outerHTML', {
|
||||
get: function () {
|
||||
- return `<${TEMPLATE_TAG}>${this.innerHTML}</${TEMPLATE_TAG}>`;
|
||||
+ return "<" + TEMPLATE_TAG +">" + this.innerHTML + "</" + TEMPLATE_TAG + ">";
|
||||
},
|
||||
set: function (innerHTML) {
|
||||
if (this.parentNode) {
|
Loading…
Reference in a new issue