Bugzilla – Bug 889
HtmlDocumentBuilder doesn't append DOCTYPE
Last modified: 2011-12-21 16:08:49 CET
Hi all. HtmlDocumentBuilder constructor creates a TreeBuilder as this.treeBuilder = new DOMTreeBuilder(implementation); //treeBuilder is a private field DOMTreeBuilder has an empty "appendDoctypeToDocument" method derived from TreeBuilder. So it is impossible to add DOCTYPE without reflection or recompiling htmlparser. Any thoughts? Haven't somebody ever wanted to do this?