DOMParser test

This is a visual test page for using a DOMParser for all included content (even partial HTML documents).

Visual inspection isn't sufficient.


Partial HTML document

This is the backwards-compatibility case. It should NOT insert a <body> element


Full HTML document

It should insert "document.body.innerHTML" It should NOT insert a <body> element


Full HTML document with fragment

It should insert "document.querySelector('main').innerHTML" It should NOT insert a <main> element


Full HTML document with fragment that is not found

It should NOT insert ANYTHING because it fails to find the fragment