mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
auto merge of #1117 : Ms2ger/servo/HTMLCollection, r=kmcallister
This commit is contained in:
commit
d222443b38
7 changed files with 32 additions and 39 deletions
|
@ -252,18 +252,15 @@ impl Element {
|
|||
}
|
||||
|
||||
pub fn GetElementsByTagName(&self, _localname: &DOMString) -> @mut HTMLCollection {
|
||||
let (scope, cx) = self.node.get_scope_and_cx();
|
||||
HTMLCollection::new(~[], cx, scope)
|
||||
HTMLCollection::new(self.node.owner_doc().document().window, ~[])
|
||||
}
|
||||
|
||||
pub fn GetElementsByTagNameNS(&self, _namespace: &DOMString, _localname: &DOMString) -> Fallible<@mut HTMLCollection> {
|
||||
let (scope, cx) = self.node.get_scope_and_cx();
|
||||
Ok(HTMLCollection::new(~[], cx, scope))
|
||||
Ok(HTMLCollection::new(self.node.owner_doc().document().window, ~[]))
|
||||
}
|
||||
|
||||
pub fn GetElementsByClassName(&self, _names: &DOMString) -> @mut HTMLCollection {
|
||||
let (scope, cx) = self.node.get_scope_and_cx();
|
||||
HTMLCollection::new(~[], cx, scope)
|
||||
HTMLCollection::new(self.node.owner_doc().document().window, ~[])
|
||||
}
|
||||
|
||||
pub fn MozMatchesSelector(&self, _selector: &DOMString) -> Fallible<bool> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue