mirror of
https://github.com/servo/servo.git
synced 2025-06-20 23:28:59 +01:00
Make the HTML parser parse into the document rather than an element.
This removes the duplicate html element.
This commit is contained in:
parent
800c2b3c0f
commit
dc6dbc63af
5 changed files with 18 additions and 32 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue