Skip to content

Commit

Permalink
Auto merge of #11586 - nox:document, r=Ms2ger
Browse files Browse the repository at this point in the history
Cleanup Document interface

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11586)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Jun 4, 2016
2 parents 80a58ca + 99c720f commit a5115c1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions components/script/dom/webidls/Document.webidl
Expand Up @@ -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
Expand Down Expand Up @@ -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_);
Expand Down Expand Up @@ -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;
Expand All @@ -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
Expand All @@ -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 = "");
Expand All @@ -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;
Expand Down

0 comments on commit a5115c1

Please sign in to comment.