Create Dom from Node

Hello , I’m looking for a way to createElement from the Node or fragment, i found DomSerializer that i used, but i get a document-fragment element that can’t be used for my creation ? Any suggestions ?

Thanks

You’ll have to describe your problem a bit better – as it is, I don’t understand what you mean.

The idea is how to expose my Nodes presented by state.doc element as innerHTML myGeneratedHTML = from Node to DOM ? a way to have document.createElement(‘div’).innerHTML = myGeneratedDOMHTML

Use the DOM serializer and appendChild instead of innerHTML.