Make the HTML parser parse into the document rather than an element.

This removes the duplicate html element.
This commit is contained in:
Ms2ger 2013-11-15 15:05:05 +01:00
parent 800c2b3c0f
commit dc6dbc63af
5 changed files with 18 additions and 32 deletions

View file

@ -441,9 +441,7 @@ impl<'self, View> AbstractNode<View> {
}
pub fn children(&self) -> AbstractNodeChildrenIterator<View> {
AbstractNodeChildrenIterator {
current_node: self.first_child(),
}
self.node().children()
}
// Issue #1030: should not walk the tree
@ -498,6 +496,12 @@ impl<View> Node<View> {
pub fn set_owner_doc(&mut self, document: AbstractDocument) {
self.owner_doc = Some(document);
}
pub fn children(&self) -> AbstractNodeChildrenIterator<View> {
AbstractNodeChildrenIterator {
current_node: self.first_child,
}
}
}
impl Node<ScriptView> {