diff options
Diffstat (limited to 'components/script/parse/html.rs')
-rw-r--r-- | components/script/parse/html.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/parse/html.rs b/components/script/parse/html.rs index 70880ef34e3..d16177e3a07 100644 --- a/components/script/parse/html.rs +++ b/components/script/parse/html.rs @@ -14,7 +14,7 @@ use dom::bindings::codegen::InheritTypes::ProcessingInstructionCast; use dom::bindings::js::{JS, JSRef, OptionalRootable, Root, Rootable}; use dom::bindings::js::{RootedReference, Temporary}; use dom::bindings::trace::RootedVec; -use dom::characterdata::CharacterDataHelpers; +use dom::characterdata::{CharacterDataHelpers, CharacterDataTypeId}; use dom::comment::Comment; use dom::document::{Document, DocumentHelpers}; use dom::document::{DocumentSource, IsHTMLDocument}; @@ -247,17 +247,17 @@ impl<'a> Serializable for JSRef<'a, Node> { serializer.write_doctype(&doctype.name()) }, - (IncludeNode, NodeTypeId::Text) => { + (IncludeNode, NodeTypeId::CharacterData(CharacterDataTypeId::Text)) => { let cdata = CharacterDataCast::to_ref(node).unwrap(); serializer.write_text(&cdata.data()) }, - (IncludeNode, NodeTypeId::Comment) => { + (IncludeNode, NodeTypeId::CharacterData(CharacterDataTypeId::Comment)) => { let cdata = CharacterDataCast::to_ref(node).unwrap(); serializer.write_comment(&cdata.data()) }, - (IncludeNode, NodeTypeId::ProcessingInstruction) => { + (IncludeNode, NodeTypeId::CharacterData(CharacterDataTypeId::ProcessingInstruction)) => { let pi: JSRef<ProcessingInstruction> = ProcessingInstructionCast::to_ref(node).unwrap(); let data = CharacterDataCast::from_ref(pi).data(); serializer.write_processing_instruction(&pi.target(), &data) |