mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Implement concept of shadow including tree order
This commit is contained in:
parent
f6ba165882
commit
2e5c058463
15 changed files with 69 additions and 43 deletions
|
@ -59,7 +59,7 @@ impl DocumentFragmentMethods for DocumentFragment {
|
|||
fn GetElementById(&self, id: DOMString) -> Option<DomRoot<Element>> {
|
||||
let node = self.upcast::<Node>();
|
||||
let id = Atom::from(id);
|
||||
node.traverse_preorder()
|
||||
node.traverse_preorder(/* shadow including */ false)
|
||||
.filter_map(DomRoot::downcast::<Element>)
|
||||
.find(
|
||||
|descendant| match descendant.get_attribute(&ns!(), &local_name!("id")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue