1 2 3 4 5 6 7
<html xmlns="http://www.w3.org/1999/xhtml"> <head><script> var newRoot = document.createElementNS("http://www.w3.org/2000/svg", "abc"); document.removeChild(document.documentElement); document.appendChild(newRoot); </script></head> </html>