Parsing html with multiple html and body tags is inconsistent with the resulting dom tree compared to html5 browsers