aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/parse/html.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2015-11-25 08:46:51 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2015-11-27 14:55:41 +0100
commitadf8b359bb584ed2f1a4ae4c94401e3a3b2a03b9 (patch)
treec45c20f0cb4f26dd5f43d2a59a7ece451e0b3629 /components/script/parse/html.rs
parent831979d6a7e6fc615434a6585710b2becb7dbf42 (diff)
downloadservo-adf8b359bb584ed2f1a4ae4c94401e3a3b2a03b9.tar.gz
servo-adf8b359bb584ed2f1a4ae4c94401e3a3b2a03b9.zip
Add XMLDocument object
Diffstat (limited to 'components/script/parse/html.rs')
-rw-r--r--components/script/parse/html.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/parse/html.rs b/components/script/parse/html.rs
index 0f0b6a00f87..6c4bf205239 100644
--- a/components/script/parse/html.rs
+++ b/components/script/parse/html.rs
@@ -195,7 +195,7 @@ impl<'a> Serializable for &'a Node {
Ok(())
},
- (ChildrenOnly, NodeTypeId::Document) => {
+ (ChildrenOnly, NodeTypeId::Document(_)) => {
for handle in node.children() {
try!(handle.r().serialize(serializer, IncludeNode));
}
@@ -227,7 +227,7 @@ impl<'a> Serializable for &'a Node {
(IncludeNode, NodeTypeId::DocumentFragment) => Ok(()),
- (IncludeNode, NodeTypeId::Document) => panic!("Can't serialize Document node itself"),
+ (IncludeNode, NodeTypeId::Document(_)) => panic!("Can't serialize Document node itself"),
}
}
}