Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- // ...
- // NOTE: Replace DocumentFragment to work around IE11 bug that
- // causes children of a document fragment modified while
- // there is a mutation observer to not have a parentNode, or
- // have a broken parentNode (!?!)
- if (/Trident/.test(navigator.userAgent)) {
- // ...
- PolyfilledHTMLTemplateElement.decorate = function(template) {
- // ...
- while ((child = template.firstChild)) {
- capturedAppendChild.call(template.content, child);
- }
- // ...
- }
- }
- }
Add Comment
Please, Sign In to add comment