mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Store a pointer to the browsing context in the Document.
This commit is contained in:
parent
0b27807ad4
commit
152cec69eb
10 changed files with 53 additions and 23 deletions
|
@ -59,6 +59,7 @@ impl DOMParserMethods for DOMParser {
|
|||
match ty {
|
||||
Text_html => {
|
||||
let document = Document::new(&self.window,
|
||||
None,
|
||||
Some(url.clone()),
|
||||
IsHTMLDocument::HTMLDocument,
|
||||
Some(content_type),
|
||||
|
@ -72,6 +73,7 @@ impl DOMParserMethods for DOMParser {
|
|||
Text_xml => {
|
||||
// FIXME: this should probably be FromParser when we actually parse the string (#3756).
|
||||
let document = Document::new(&self.window,
|
||||
None,
|
||||
Some(url.clone()),
|
||||
IsHTMLDocument::NonHTMLDocument,
|
||||
Some(content_type),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue