polyfills icon indicating copy to clipboard operation
polyfills copied to clipboard

[IE] Invalid character in outerHtml.get

Open nick-kravchenko opened this issue 4 years ago • 2 comments

Description

Got an error after update to 1.5.0 in IE11

k=function(t){Object.defineProperty(t,"outerHTML",{get:function(){return`<${_}>${this.innerHTML}</${_}>`},set:function(t){if(!this.parentNode)throw new Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");g.body.innerHTML=t;for(var e=this.ownerDocument.createDocumentFragment();g.body.firstChild;)a.call(e,g.body.firstChild);c.call(this.parentNode,e,this)},configurable:!0})}

Error caused by <${_}>${this.innerHTML}</${_}>

Link to commit that causes the issue: https://github.com/webcomponents/polyfills/commit/041c940a9333f00a2386f8a2951d918dd5e89c28

Version

@webcomponents/[email protected]

Browsers affected

  • [ ] Chrome
  • [ ] Firefox
  • [ ] Edge
  • [ ] Safari
  • [x] IE 11

nick-kravchenko avatar Aug 06 '21 14:08 nick-kravchenko

I got the same issue. It breaks entire script. After rollback to 14 problem has disappeared.

zemlakov avatar Aug 06 '21 14:08 zemlakov

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 12 '22 00:08 stale[bot]