Uncaught HierarchyRequestError: Failed to execute appendChild on Node: Only one element on document allowed.
See original GitHub issueI 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:
- Created 7 years ago
- Reactions:7
- Comments:14
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you very much @JakeChampion 😃)
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.