minidom: Remove comments support. Forbid them as per XMPP RFC.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
c154593fe5
commit
015d0007fc
5 changed files with 13 additions and 76 deletions
|
|
@ -160,7 +160,6 @@ impl TryFrom<Element> for Body {
|
|||
match child {
|
||||
Node::Element(child) => children.push(Child::Tag(Tag::try_from(child.clone())?)),
|
||||
Node::Text(text) => children.push(Child::Text(text.clone())),
|
||||
Node::Comment(_) => unimplemented!(), // XXX: remove!
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -309,7 +308,6 @@ impl TryFrom<Element> for Tag {
|
|||
match child {
|
||||
Node::Element(child) => children.push(Child::Tag(Tag::try_from(child.clone())?)),
|
||||
Node::Text(text) => children.push(Child::Text(text.clone())),
|
||||
Node::Comment(_) => unimplemented!(), // XXX: remove!
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue