diff options
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/document.rs | 2 | ||||
-rw-r--r-- | components/script/dom/servoparser/mod.rs | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 2dbfd5648de..713ebf4defe 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -4340,7 +4340,7 @@ impl DocumentMethods for Document { .clone(); *self.loader.borrow_mut() = DocumentLoader::new_with_threads(resource_threads, Some(self.url())); - ServoParser::parse_html_script_input(self, self.url(), "text/html"); + ServoParser::parse_html_script_input(self, self.url()); // Step 15 self.ready_state.set(DocumentReadyState::Loading); diff --git a/components/script/dom/servoparser/mod.rs b/components/script/dom/servoparser/mod.rs index 41895832a7c..8a922890714 100644 --- a/components/script/dom/servoparser/mod.rs +++ b/components/script/dom/servoparser/mod.rs @@ -225,7 +225,7 @@ impl ServoParser { } } - pub fn parse_html_script_input(document: &Document, url: ServoUrl, type_: &str) { + pub fn parse_html_script_input(document: &Document, url: ServoUrl) { let parser = ServoParser::new( document, Tokenizer::Html(self::html::Tokenizer::new( @@ -238,10 +238,6 @@ impl ServoParser { ParserKind::ScriptCreated, ); document.set_current_parser(Some(&parser)); - if !type_.eq_ignore_ascii_case("text/html") { - parser.parse_string_chunk("<pre>\n".to_owned()); - parser.tokenizer.borrow_mut().set_plaintext_state(); - } } pub fn parse_xml_document(document: &Document, input: DOMString, url: ServoUrl) { |