diff options
author | bors-servo <release+servo@mozilla.com> | 2014-02-24 17:13:46 -0500 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2014-02-24 17:13:46 -0500 |
commit | 22760b6665c75f6908bcfd7cad4de111187ac6f7 (patch) | |
tree | 652dca921dcb0a174585a34d300b4f288074fb9c /src/components/script/dom/webidls | |
parent | ffcf3b2905b7f9e886904015b1583e93f78f1199 (diff) | |
parent | 870ccd95d2fd9afbc0128bd6b44391eb695554c9 (diff) | |
download | servo-22760b6665c75f6908bcfd7cad4de111187ac6f7.tar.gz servo-22760b6665c75f6908bcfd7cad4de111187ac6f7.zip |
auto merge of #1739 : Ms2ger/servo/document-cleanup, r=jdm
The specs currently have only Document; this may well change, but the split won't be along the lines we've implemented right now. In the meantime, this simplifies our code quite a bit.
Diffstat (limited to 'src/components/script/dom/webidls')
-rw-r--r-- | src/components/script/dom/webidls/Document.webidl | 11 | ||||
-rw-r--r-- | src/components/script/dom/webidls/HTMLDocument.webidl | 17 |
2 files changed, 9 insertions, 19 deletions
diff --git a/src/components/script/dom/webidls/Document.webidl b/src/components/script/dom/webidls/Document.webidl index 12769016f38..daa91f540fb 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] @@ -47,4 +45,13 @@ partial interface Document { attribute HTMLElement? body; readonly attribute HTMLHeadElement? head; /*NodeList*/ HTMLCollection getElementsByName(DOMString elementName); + + readonly attribute HTMLCollection images; + readonly attribute HTMLCollection embeds; + readonly attribute HTMLCollection plugins; + readonly attribute HTMLCollection links; + readonly attribute HTMLCollection forms; + readonly attribute HTMLCollection scripts; + readonly attribute HTMLCollection anchors; + readonly attribute HTMLCollection applets; }; diff --git a/src/components/script/dom/webidls/HTMLDocument.webidl b/src/components/script/dom/webidls/HTMLDocument.webidl deleted file mode 100644 index b899a46678f..00000000000 --- a/src/components/script/dom/webidls/HTMLDocument.webidl +++ /dev/null @@ -1,17 +0,0 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -/* http://www.whatwg.org/specs/web-apps/current-work/#the-document-object */ -interface HTMLDocument : Document { - readonly attribute HTMLCollection images; - readonly attribute HTMLCollection embeds; - readonly attribute HTMLCollection plugins; - readonly attribute HTMLCollection links; - readonly attribute HTMLCollection forms; - readonly attribute HTMLCollection scripts; - readonly attribute HTMLCollection anchors; - readonly attribute HTMLCollection applets; -}; |