diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-06-03 16:32:32 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-06-03 16:42:34 +0200 |
commit | 99c720f4920f8c539bbb499fd60e5ff07b8b3f2d (patch) | |
tree | f49786b483dda6dfcab3a7dd914773ac5dfb1512 | |
parent | 51d41c5161fe61ad28cd0db98632633967832823 (diff) | |
download | servo-99c720f4920f8c539bbb499fd60e5ff07b8b3f2d.tar.gz servo-99c720f4920f8c539bbb499fd60e5ff07b8b3f2d.zip |
Cleanup Document interface
-rw-r--r-- | components/script/dom/webidls/Document.webidl | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/components/script/dom/webidls/Document.webidl b/components/script/dom/webidls/Document.webidl index dd6ff9c924e..0e5c7b661a6 100644 --- a/components/script/dom/webidls/Document.webidl +++ b/components/script/dom/webidls/Document.webidl @@ -14,9 +14,9 @@ interface Document : Node { readonly attribute DOMImplementation implementation; [Constant] readonly attribute USVString URL; - readonly attribute Element? activeElement; [Constant] readonly attribute USVString documentURI; + // readonly attribute USVString origin; readonly attribute DOMString compatMode; readonly attribute DOMString characterSet; readonly attribute DOMString charset; // legacy alias of .characterSet @@ -53,7 +53,7 @@ interface Document : Node { [NewObject, Throws] Attr createAttribute(DOMString localName); [NewObject, Throws] - Attr createAttributeNS(DOMString? namespace, DOMString localName); + Attr createAttributeNS(DOMString? namespace, DOMString qualifiedName); [NewObject, Throws] Event createEvent(DOMString interface_); @@ -91,6 +91,7 @@ partial /*sealed*/ interface Document { // DOM tree accessors getter object (DOMString name); attribute DOMString title; + // attribute DOMString dir; [SetterThrows] attribute HTMLElement? body; readonly attribute HTMLHeadElement? head; @@ -107,9 +108,6 @@ partial /*sealed*/ interface Document { [SameObject] readonly attribute HTMLCollection scripts; NodeList getElementsByName(DOMString elementName); - // NodeList getItems(optional DOMString typeNames = ""); // microdata - // [SameObject] - // readonly attribute DOMElementMap cssElementMap; readonly attribute HTMLScriptElement? currentScript; // dynamic markup insertion @@ -121,7 +119,7 @@ partial /*sealed*/ interface Document { // user interaction readonly attribute Window/*Proxy?*/ defaultView; - // readonly attribute Element? activeElement; + readonly attribute Element? activeElement; boolean hasFocus(); // attribute DOMString designMode; // boolean execCommand(DOMString commandId, optional boolean showUI = false, optional DOMString value = ""); @@ -130,7 +128,6 @@ partial /*sealed*/ interface Document { // boolean queryCommandState(DOMString commandId); // boolean queryCommandSupported(DOMString commandId); // DOMString queryCommandValue(DOMString commandId); - // readonly attribute HTMLCollection commands; // special event handler IDL attributes that only apply to Document objects [LenientThis] attribute EventHandler onreadystatechange; |