Remove also DOCTYPE erasing on DOM (issue 334, pull request 378 addition)