pub fn build_document( html: &str, compat: bool, scripting: bool, poll: impl FnMut() -> bool, ) -> (Node, ParseStats)
文書全体を解析して #document ノード(子に DOCTYPE・コメント・html)を返す。compat はブラウザ用の整形。
#document
html
compat