servo: Merge #11586 - Cleanup Document interface (from nox:document); r=Ms2ger
authorAnthony Ramine <n.oxyde@gmail.com>
Sat, 04 Jun 2016 15:15:19 -0500
changeset 339012 34a33f786aab45eeda4aaf63773a072c2700cd9b
parent 339011 d9dfc1f50f3ac6930c51cd63d1f0cba06c6fcd1b
child 339013 44d5eb864a8c92a48cdafb6e2dd0f6889ded62ec
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMs2ger
servo: Merge #11586 - Cleanup Document interface (from nox:document); r=Ms2ger Source-Repo: https://github.com/servo/servo Source-Revision: a5115c13fd99588a9b9c40fe37c01f9a7775d1ce
servo/components/script/dom/webidls/Document.webidl
--- a/servo/components/script/dom/webidls/Document.webidl
+++ b/servo/components/script/dom/webidls/Document.webidl
@@ -9,19 +9,19 @@
 
 // https://dom.spec.whatwg.org/#interface-document
 [Constructor]
 interface Document : Node {
   [SameObject]
   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
   readonly attribute DOMString inputEncoding; // legacy alias of .characterSet
   [Constant]
   readonly attribute DOMString contentType;
 
   [Pure]
@@ -48,17 +48,17 @@ interface Document : Node {
   [NewObject, Throws]
   Node importNode(Node node, optional boolean deep = false);
   [Throws]
   Node adoptNode(Node 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_);
 
   [NewObject]
   Range createRange();
 
   // NodeFilter.SHOW_ALL = 0xFFFFFFFF
@@ -86,56 +86,53 @@ partial /*sealed*/ interface Document {
   [Throws]
   attribute DOMString cookie;
   readonly attribute DOMString lastModified;
   readonly attribute DocumentReadyState readyState;
 
   // DOM tree accessors
      getter object (DOMString name);
            attribute DOMString title;
+  //       attribute DOMString dir;
            [SetterThrows]
            attribute HTMLElement? body;
   readonly attribute HTMLHeadElement? head;
   [SameObject]
   readonly attribute HTMLCollection images;
   [SameObject]
   readonly attribute HTMLCollection embeds;
   [SameObject]
   readonly attribute HTMLCollection plugins;
   [SameObject]
   readonly attribute HTMLCollection links;
   [SameObject]
   readonly attribute HTMLCollection forms;
   [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
   // Document open(optional DOMString type = "text/html", optional DOMString replace = "");
   // WindowProxy open(DOMString url, DOMString name, DOMString features, optional boolean replace = false);
   // void close();
   // void write(DOMString... text);
   // void writeln(DOMString... text);
 
   // 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 = "");
   // boolean queryCommandEnabled(DOMString commandId);
   // boolean queryCommandIndeterm(DOMString commandId);
   // 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;
 
   // also has obsolete members
 };
 Document implements GlobalEventHandlers;
 Document implements DocumentAndElementEventHandlers;