Guest User

Untitled

a guest
Jan 16th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. (function() {
  2. // ...
  3.  
  4. // NOTE: Replace DocumentFragment to work around IE11 bug that
  5. // causes children of a document fragment modified while
  6. // there is a mutation observer to not have a parentNode, or
  7. // have a broken parentNode (!?!)
  8. if (/Trident/.test(navigator.userAgent)) {
  9. // ...
  10. PolyfilledHTMLTemplateElement.decorate = function(template) {
  11. // ...
  12. while ((child = template.firstChild)) {
  13. capturedAppendChild.call(template.content, child);
  14. }
  15. // ...
  16. }
  17. }
  18. }
Add Comment
Please, Sign In to add comment