mirror of
https://github.com/servo/servo.git
synced 2025-10-08 12:39:30 +01:00
Added ParentNode.querySelector skeleton
This commit is contained in:
parent
f78d04b620
commit
f0aadb790d
4 changed files with 23 additions and 0 deletions
|
@ -429,6 +429,7 @@ pub trait ElementMethods {
|
|||
fn GetInnerHTML(&self) -> Fallible<DOMString>;
|
||||
fn GetOuterHTML(&self) -> Fallible<DOMString>;
|
||||
fn Children(&self) -> Temporary<HTMLCollection>;
|
||||
fn QuerySelector(&self, selectors: DOMString) -> Fallible<Option<Temporary<Element>>>;
|
||||
fn Remove(&self);
|
||||
}
|
||||
|
||||
|
@ -704,6 +705,10 @@ impl<'a> ElementMethods for JSRef<'a, Element> {
|
|||
HTMLCollection::children(&*window, NodeCast::from_ref(self))
|
||||
}
|
||||
|
||||
fn QuerySelector(&self, selectors: DOMString) -> Fallible<Option<Temporary<Element>>> {
|
||||
Ok(None)
|
||||
}
|
||||
|
||||
// http://dom.spec.whatwg.org/#dom-childnode-remove
|
||||
fn Remove(&self) {
|
||||
let node: &JSRef<Node> = NodeCast::from_ref(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue