0

“Clone error” when using document.createElement(“LI”)

Hello, I am trying to use document.createElement(“LI”) to create a new element. When I console.log the new element, I was expecting<Li></Li>, but instead an error occurs. Can someone advise on what’s wrong? Regards Ben

20th Oct 2019, 3:29 AM
Ben
2 Answers
+ 1
I'm not sure why this happens. It doesnt appear to be happening for me. https://code.sololearn.com/W1ETqpGl9uAM/?ref=app Could you send your whole code?
20th Oct 2019, 3:44 AM
Brian R
Brian R - avatar
20th Oct 2019, 7:42 AM
Ben