Uncaught HierarchyRequestError: Failed to execute appendChild on Node: Only one element on document allowed.

See original GitHub issue

I did not change the code and I started to have this error on my website. I have only noticed this today

The error is in this line: var t, n = document.appendChild(document.createElement("body")), o = n.appendChild(document.createElement("iframe")), r = o.contentWindow.document, c = Element.prototype = r.appendChild(r.createElement("*")), d = {}, m = function(e, t) {

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:14

github_iconTop GitHub Comments

1reaction
dpereira411commented, Sep 14, 2016

Thank you very much @JakeChampion 😃)

1reaction
dpereira411commented, Sep 14, 2016

This is happening in all major browsers / recent versions. The URL I’m fetching is https://cdn.polyfill.io/v2/polyfill.min.js?features=fetch,setImmediate,matchMedia&flags=always,gated&unknown=polyfill&callback=arceus_callback_1 If I fetch the same URL without .min I see its the 3.12 version on the headers. Will provide a test later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to execute 'appendChild' on 'Node': Only one element ...
In my case, the DOM was complaining because I was trying to add a child in the document itself: document.appendChild(myElement);.
Read more >
Failed to execute 'appendChild' on 'Node': Only one element ...
Uncaught DOMException: Failed to execute 'appendChild' on 'Node': Only one element on document allowed. #667.
Read more >
Uncaught TypeError: Failed to execute 'appendChild' on 'Node'
In developing a Javascript function, I ran into the following error when I looked at my console: Uncaught TypeError: Failed to execute 'appendChild'...
Read more >
failed to execute 'contains' on 'node': parameter 1 is not of type ...
The dynamic SCRIPT element and string of document. Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'....
Read more >
DOMException: Failed to execute 'appendChild' on 'Node'
Not sure where this additional hidden input is coming from, but could it be the reason I am getting the javascript error? Netlify...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found