Add XMLDocument object

This commit is contained in:
Guillaume Gomez 2015-11-25 08:46:51 +01:00
parent 831979d6a7
commit adf8b359bb
18 changed files with 169 additions and 73 deletions

View file

@ -797,7 +797,7 @@ impl RangeMethods for Range {
// Step 2.
match new_parent.type_id() {
NodeTypeId::Document |
NodeTypeId::Document(_) |
NodeTypeId::DocumentType |
NodeTypeId::DocumentFragment => return Err(Error::InvalidNodeType),
_ => ()