mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Remove methods from IDL that don't do anything useful.
This commit is contained in:
parent
ffcf3b2905
commit
2c8107e811
2 changed files with 0 additions and 12 deletions
|
@ -223,16 +223,6 @@ impl Document {
|
||||||
self.createHTMLCollection(|elem| elem.tag_name == tag)
|
self.createHTMLCollection(|elem| elem.tag_name == tag)
|
||||||
}
|
}
|
||||||
|
|
||||||
// http://dom.spec.whatwg.org/#dom-document-getelementsbytagnamens
|
|
||||||
pub fn GetElementsByTagNameNS(&self, _ns: Option<DOMString>, _tag: DOMString) -> JS<HTMLCollection> {
|
|
||||||
HTMLCollection::new(&self.window, ~[])
|
|
||||||
}
|
|
||||||
|
|
||||||
// http://dom.spec.whatwg.org/#dom-document-getelementsbyclassname
|
|
||||||
pub fn GetElementsByClassName(&self, _class: DOMString) -> JS<HTMLCollection> {
|
|
||||||
HTMLCollection::new(&self.window, ~[])
|
|
||||||
}
|
|
||||||
|
|
||||||
// http://dom.spec.whatwg.org/#dom-nonelementparentnode-getelementbyid
|
// http://dom.spec.whatwg.org/#dom-nonelementparentnode-getelementbyid
|
||||||
pub fn GetElementById(&self, id: DOMString) -> Option<JS<Element>> {
|
pub fn GetElementById(&self, id: DOMString) -> Option<JS<Element>> {
|
||||||
// TODO: "in tree order, within the context object's tree"
|
// TODO: "in tree order, within the context object's tree"
|
||||||
|
|
|
@ -21,8 +21,6 @@ interface Document : Node {
|
||||||
readonly attribute DocumentType? doctype;
|
readonly attribute DocumentType? doctype;
|
||||||
readonly attribute Element? documentElement;
|
readonly attribute Element? documentElement;
|
||||||
HTMLCollection getElementsByTagName(DOMString localName);
|
HTMLCollection getElementsByTagName(DOMString localName);
|
||||||
HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
|
|
||||||
HTMLCollection getElementsByClassName(DOMString classNames);
|
|
||||||
Element? getElementById(DOMString elementId);
|
Element? getElementById(DOMString elementId);
|
||||||
|
|
||||||
[Creator, Throws]
|
[Creator, Throws]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue