Jacek Caban (@jacek) commented about dlls/mshtml/htmldoc.c:
}
HRESULT create_document_node(nsIDOMDocument *nsdoc, GeckoBrowser *browser, HTMLInnerWindow *window,
HTMLInnerWindow *script_global, compat_mode_t parent_mode, HTMLDocumentNode **ret)
HTMLInnerWindow *script_global, document_type_t doc_type, compat_mode_t parent_mode, HTMLDocumentNode **ret)
Is it really specific to `DOMParser`? Shouldn't we do a similar thing if a frame navigates to SVG or XML document? Could we somehow get the type from `nsdoc` instead of guessing it from other sources?