mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Added CollectionFilter, CollectionTypeId
This commit is contained in:
parent
f34a64049a
commit
904e464824
3 changed files with 56 additions and 18 deletions
|
@ -9,7 +9,7 @@ use dom::bindings::error::ErrorResult;
|
|||
use dom::document::Document;
|
||||
use dom::element::HTMLMapElementTypeId;
|
||||
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
|
||||
use dom::htmlcollection::HTMLCollection;
|
||||
use dom::htmlcollection::{HTMLCollection, Static};
|
||||
use dom::htmlelement::HTMLElement;
|
||||
use dom::node::{Node, ElementNodeTypeId};
|
||||
use servo_util::str::DOMString;
|
||||
|
@ -54,6 +54,6 @@ impl HTMLMapElement {
|
|||
// FIXME: https://github.com/mozilla/servo/issues/1845
|
||||
let doc = self.htmlelement.element.node.owner_doc();
|
||||
let doc = doc.get();
|
||||
HTMLCollection::new(&doc.window, ~[])
|
||||
HTMLCollection::new(&doc.window, Static(~[]))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue