@@ -20,9 +20,9 @@ interface nsISupports;
20
20
interface URI;
21
21
interface nsIDocShell;
22
22
interface nsILoadGroup;
23
+ */
23
24
24
25
enum VisibilityState { "hidden" , "visible" };
25
- */
26
26
27
27
/* https:// dom.spec.whatwg.org/ #dictdef- elementcreationoptions */
28
28
dictionary ElementCreationOptions {
@@ -35,11 +35,8 @@ dictionary ElementCreationOptions {
35
35
/* https:// dom.spec.whatwg.org/ #interface- document */
36
36
[Constructor]
37
37
interface Document : Node {
38
-
39
- /* TODO
40
38
[Throws]
41
39
readonly attribute DOMImplementation implementation;
42
- */
43
40
[Pure, Throws, BinaryName="documentURIFromJS" , NeedsCallerType]
44
41
readonly attribute DOMString URL;
45
42
[Pure, Throws, BinaryName="documentURIFromJS" , NeedsCallerType]
@@ -79,10 +76,8 @@ interface Document : Node {
79
76
Text createTextNode(DOMString data);
80
77
[NewObject]
81
78
Comment createComment(DOMString data);
82
- /* TODO
83
79
[NewObject, Throws]
84
80
ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
85
- */
86
81
87
82
[CEReactions, Throws]
88
83
Node importNode(Node node, optional boolean deep = false);
@@ -92,10 +87,8 @@ interface Document : Node {
92
87
[NewObject, Throws, NeedsCallerType]
93
88
Event createEvent(DOMString interface);
94
89
95
- /* TODO
96
90
[NewObject, Throws]
97
91
Range createRange();
98
- */
99
92
100
93
// NodeFilter.SHOW_ALL = 0xFFFFFFFF
101
94
[NewObject, Throws]
@@ -110,26 +103,22 @@ interface Document : Node {
110
103
111
104
// These are not in the spec, but leave them for now for backwards compat.
112
105
// So sort of like Gecko extensions
113
- /* TODO
114
106
[NewObject, Throws]
115
107
CDATASection createCDATASection(DOMString data);
116
108
[NewObject, Throws]
117
109
Attr createAttribute(DOMString name);
118
110
[NewObject, Throws]
119
111
Attr createAttributeNS(DOMString? namespace, DOMString name);
120
- */
121
112
};
122
113
123
114
// https:// html.spec.whatwg.org/ multipage/ dom.html#the- document- object
124
115
partial interface Document {
125
- /* TODO
126
116
[PutForwards=href, Unforgeable] readonly attribute Location? location;
127
117
// (HTML only) attribute DOMString domain;
128
118
readonly attribute DOMString referrer;
129
119
// (HTML only) attribute DOMString cookie;
130
120
readonly attribute DOMString lastModified;
131
121
readonly attribute DOMString readyState;
132
- */
133
122
134
123
// DOM tree accessors
135
124
// (Not proxy yet)getter object (DOMString name);
@@ -305,11 +294,8 @@ partial interface Document {
305
294
// https:// w3c.github.io/ page- visibility/ #extensions- to- the- document- interface
306
295
partial interface Document {
307
296
readonly attribute boolean hidden;
308
-
309
- /* TODO
310
297
readonly attribute VisibilityState visibilityState;
311
298
attribute EventHandler onvisibilitychange;
312
- */
313
299
};
314
300
315
301
// https:// drafts.csswg.org/ cssom/ #extensions- to- the- document- interface
@@ -402,10 +388,8 @@ partial interface Document {
402
388
403
389
// http:// w3c.github.io/ selection- api/ #extensions- to- document- interface
404
390
partial interface Document {
405
- /* TODO
406
391
[Throws]
407
392
Selection? getSelection();
408
- */
409
393
};
410
394
411
395
// Extension to give chrome JS the ability to determine whether
0 commit comments