Closed utkarshkukreti closed 4 years ago
The main issue here is that a document-fragment is meant to be a lightweight version of a document. So html
and body
are not allowed as children in a document-fragment. This of it as a div
and trying to wrap <body></body>
. That would be invalid HTML.
However I think we can fix this. https://github.com/patrick-steele-idem/morphdom/pull/185
Let me know what you think!
Code:
Error:
Adding content to
<body>
e.g.<body>Hello</body>
works fine.I'll look into this as soon as I can; opening an issue so I don't forget.