mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
parent
f30faeadd0
commit
5c8b617715
5 changed files with 23 additions and 22 deletions
|
@ -56,6 +56,7 @@ impl<'a> DOMParserMethods for JSRef<'a, DOMParser> {
|
|||
let document = Document::new(window.r(), Some(url.clone()),
|
||||
IsHTMLDocument::HTMLDocument,
|
||||
Some(content_type),
|
||||
None,
|
||||
DocumentSource::FromParser).root();
|
||||
parse_html(document.r(), HTMLInput::InputString(s), &url);
|
||||
document.r().set_ready_state(DocumentReadyState::Complete);
|
||||
|
@ -66,6 +67,7 @@ impl<'a> DOMParserMethods for JSRef<'a, DOMParser> {
|
|||
Ok(Document::new(window.r(), Some(url.clone()),
|
||||
IsHTMLDocument::NonHTMLDocument,
|
||||
Some(content_type),
|
||||
None,
|
||||
DocumentSource::NotFromParser))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue