14
14
* https:// drafts.csswg.org/ cssom- view/ #extensions- to- the- document- interface
15
15
*/
16
16
17
+ /* TODO
17
18
interface WindowProxy;
18
19
interface nsISupports;
19
20
interface URI;
20
21
interface nsIDocShell;
21
22
interface nsILoadGroup;
22
23
23
24
enum VisibilityState { "hidden" , "visible" };
25
+ */
24
26
25
27
/* https:// dom.spec.whatwg.org/ #dictdef- elementcreationoptions */
26
28
dictionary ElementCreationOptions {
@@ -33,8 +35,11 @@ dictionary ElementCreationOptions {
33
35
/* https:// dom.spec.whatwg.org/ #interface- document */
34
36
[Constructor]
35
37
interface Document : Node {
38
+
39
+ /* TODO
36
40
[Throws]
37
41
readonly attribute DOMImplementation implementation;
42
+ */
38
43
[Pure, Throws, BinaryName="documentURIFromJS" , NeedsCallerType]
39
44
readonly attribute DOMString URL;
40
45
[Pure, Throws, BinaryName="documentURIFromJS" , NeedsCallerType]
@@ -54,6 +59,7 @@ interface Document : Node {
54
59
readonly attribute DocumentType? doctype;
55
60
[Pure]
56
61
readonly attribute Element? documentElement;
62
+
57
63
[Pure]
58
64
HTMLCollection getElementsByTagName(DOMString localName);
59
65
[Pure, Throws]
@@ -73,8 +79,10 @@ interface Document : Node {
73
79
Text createTextNode(DOMString data);
74
80
[NewObject]
75
81
Comment createComment(DOMString data);
82
+ /* TODO
76
83
[NewObject, Throws]
77
84
ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
85
+ */
78
86
79
87
[CEReactions, Throws]
80
88
Node importNode(Node node, optional boolean deep = false);
@@ -84,8 +92,10 @@ interface Document : Node {
84
92
[NewObject, Throws, NeedsCallerType]
85
93
Event createEvent(DOMString interface);
86
94
95
+ /* TODO
87
96
[NewObject, Throws]
88
97
Range createRange();
98
+ */
89
99
90
100
// NodeFilter.SHOW_ALL = 0xFFFFFFFF
91
101
[NewObject, Throws]
@@ -100,22 +110,26 @@ interface Document : Node {
100
110
101
111
// These are not in the spec, but leave them for now for backwards compat.
102
112
// So sort of like Gecko extensions
113
+ /* TODO
103
114
[NewObject, Throws]
104
115
CDATASection createCDATASection(DOMString data);
105
116
[NewObject, Throws]
106
117
Attr createAttribute(DOMString name);
107
118
[NewObject, Throws]
108
119
Attr createAttributeNS(DOMString? namespace, DOMString name);
120
+ */
109
121
};
110
122
111
123
// https:// html.spec.whatwg.org/ multipage/ dom.html#the- document- object
112
124
partial interface Document {
125
+ /* TODO
113
126
[PutForwards=href, Unforgeable] readonly attribute Location? location;
114
127
// (HTML only) attribute DOMString domain;
115
128
readonly attribute DOMString referrer;
116
129
// (HTML only) attribute DOMString cookie;
117
130
readonly attribute DOMString lastModified;
118
131
readonly attribute DOMString readyState;
132
+ */
119
133
120
134
// DOM tree accessors
121
135
// (Not proxy yet)getter object (DOMString name);
@@ -133,8 +147,10 @@ partial interface Document {
133
147
[SameObject] readonly attribute HTMLCollection links;
134
148
[SameObject] readonly attribute HTMLCollection forms;
135
149
[SameObject] readonly attribute HTMLCollection scripts;
150
+ /* TODO
136
151
[Pure]
137
152
NodeList getElementsByName(DOMString elementName);
153
+ */
138
154
// (Not implemented)readonly attribute DOMElementMap cssElementMap;
139
155
140
156
// dynamic markup insertion
@@ -174,7 +190,9 @@ partial interface Document {
174
190
* True if this document is synthetic : stand alone image , video, audio file,
175
191
* etc.
176
192
*/
193
+ /* Non standard
177
194
[Func="IsChromeOrXBL" ] readonly attribute boolean mozSyntheticDocument;
195
+ */
178
196
/**
179
197
* Returns the script element whose script is currently being processed.
180
198
*
@@ -257,17 +275,23 @@ partial interface Document {
257
275
// versions have it uppercase.
258
276
[LenientSetter, Unscopable, Func="nsDocument::IsUnprefixedFullscreenEnabled" ]
259
277
readonly attribute boolean fullscreen;
278
+ /* Non standard
260
279
[BinaryName="fullscreen" ]
261
280
readonly attribute boolean mozFullScreen;
281
+ */
262
282
[LenientSetter, Func="nsDocument::IsUnprefixedFullscreenEnabled" , NeedsCallerType]
263
283
readonly attribute boolean fullscreenEnabled;
284
+ /* Non standard
264
285
[BinaryName="fullscreenEnabled" , NeedsCallerType]
265
286
readonly attribute boolean mozFullScreenEnabled;
287
+ */
266
288
267
289
[Func="nsDocument::IsUnprefixedFullscreenEnabled" ]
268
290
void exitFullscreen();
291
+ /* Non standard
269
292
[BinaryName="exitFullscreen" ]
270
293
void mozCancelFullScreen();
294
+ */
271
295
272
296
// Events handlers
273
297
[Func="nsDocument::IsUnprefixedFullscreenEnabled" ]
@@ -289,8 +313,11 @@ partial interface Document {
289
313
// https:// w3c.github.io/ page- visibility/ #extensions- to- the- document- interface
290
314
partial interface Document {
291
315
readonly attribute boolean hidden;
316
+
317
+ /* TODO
292
318
readonly attribute VisibilityState visibilityState;
293
319
attribute EventHandler onvisibilitychange;
320
+ */
294
321
};
295
322
296
323
// https:// drafts.csswg.org/ cssom/ #extensions- to- the- document- interface
@@ -314,8 +341,10 @@ partial interface Document {
314
341
partial interface Document {
315
342
[Throws, Pure]
316
343
Element? querySelector(DOMString selectors);
344
+ /* TODO
317
345
[Throws, Pure]
318
346
NodeList querySelectorAll(DOMString selectors);
347
+ */
319
348
320
349
// (Not implemented)Element? find(DOMString selectors, optional (Element or sequence< Node> )? refNodes);
321
350
// (Not implemented)NodeList findAll(DOMString selectors, optional (Element or sequence< Node> )? refNodes);
@@ -339,6 +368,7 @@ partial interface Document {
339
368
partial interface Document {
340
369
// XBL support. Wish we could make these [ChromeOnly], but
341
370
// that would likely break bindings running with the page principal.
371
+ /* Non standard
342
372
[Func="IsChromeOrXBL" ]
343
373
NodeList? getAnonymousNodes(Element elt);
344
374
[Func="IsChromeOrXBL" ]
@@ -348,6 +378,7 @@ partial interface Document {
348
378
Element? getBindingParent(Node node);
349
379
[Throws, Func="IsChromeOrXBL" , NeedsSubjectPrincipal]
350
380
void loadBindingDocument(DOMString documentURL);
381
+ */
351
382
352
383
// Touch bits
353
384
// XXXbz I can't find the sane spec for this stuff, so just cribbing
@@ -478,10 +509,12 @@ partial interface Document {
478
509
// Extension to give chrome and XBL JS the ability to determine whether
479
510
// the document is sandboxed without permission to run scripts
480
511
// and whether inline scripts are blocked by the document's CSP.
512
+ /* Non standard
481
513
partial interface Document {
482
514
[Func="IsChromeOrXBL" ] readonly attribute boolean hasScriptsBlockedBySandbox;
483
515
[Func="IsChromeOrXBL" ] readonly attribute boolean inlineScriptAllowedByCSP;
484
516
};
517
+ */
485
518
486
519
// For more information on Flash classification, see
487
520
// toolkit/ components/ url- classifier/ flash- block- lists.rst
0 commit comments