Document parseFromString(String content, String type) { return DomParserDriver().parseDocument( window: window, content: content, mime: type, ); }