diff --git a/src/components/script/dom/document.rs b/src/components/script/dom/document.rs index f699c859d74..d6165b7b85e 100644 --- a/src/components/script/dom/document.rs +++ b/src/components/script/dom/document.rs @@ -223,16 +223,6 @@ impl Document { self.createHTMLCollection(|elem| elem.tag_name == tag) } - // http://dom.spec.whatwg.org/#dom-document-getelementsbytagnamens - pub fn GetElementsByTagNameNS(&self, _ns: Option, _tag: DOMString) -> JS { - HTMLCollection::new(&self.window, ~[]) - } - - // http://dom.spec.whatwg.org/#dom-document-getelementsbyclassname - pub fn GetElementsByClassName(&self, _class: DOMString) -> JS { - HTMLCollection::new(&self.window, ~[]) - } - // http://dom.spec.whatwg.org/#dom-nonelementparentnode-getelementbyid pub fn GetElementById(&self, id: DOMString) -> Option> { // TODO: "in tree order, within the context object's tree" diff --git a/src/components/script/dom/webidls/Document.webidl b/src/components/script/dom/webidls/Document.webidl index 12769016f38..feb312c559d 100644 --- a/src/components/script/dom/webidls/Document.webidl +++ b/src/components/script/dom/webidls/Document.webidl @@ -21,8 +21,6 @@ interface Document : Node { readonly attribute DocumentType? doctype; readonly attribute Element? documentElement; HTMLCollection getElementsByTagName(DOMString localName); - HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName); - HTMLCollection getElementsByClassName(DOMString classNames); Element? getElementById(DOMString elementId); [Creator, Throws]