servo: Merge #11586 - Cleanup Document interface (from nox:document); r=Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: a5115c13fd99588a9b9c40fe37c01f9a7775d1ce
This commit is contained in:
Anthony Ramine 2016-06-04 15:15:19 -05:00
Родитель a9b041b2e8
Коммит 920f8b06df
1 изменённых файлов: 4 добавлений и 7 удалений

Просмотреть файл

@ -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;