Debian Codegraph @

externs/gecko_dom.js

raw symbols SCIP
1 /*
2 * Copyright 2008 Closure Compiler Authors
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 /**
18 * @fileoverview Definitions for all the extensions over
19 * W3C's DOM specification by Gecko. This file depends on
20 * w3c_dom2.js.
21 *
22 * When a non-standard extension appears in both Gecko and IE, we put
23 * it in gecko_dom.js
24 *
25 * @externs
26 */
27
28 // TODO: Almost all of it has not been annotated with types.
29
30 // Gecko DOM;
31
32 /**
33 * Mozilla only???
34 * @constructor
35 * @extends {HTMLElement}
36 */
37 function HTMLSpanElement() {}
38
39 /**
40 * @see https://developer.mozilla.org/en/Components_object
41 */
42 Window.prototype.Components;
43
44 /**
45 * @type Window
46 * @see https://developer.mozilla.org/en/DOM/window.content
47 */
48 Window.prototype.content;
49
50 /**
51 * @type {boolean}
52 * @see https://developer.mozilla.org/en/DOM/window.closed
53 */
54 Window.prototype.closed;
55
56 /** @see https://developer.mozilla.org/en/DOM/window.controllers */
57 Window.prototype.controllers;
58
59 /** @see https://developer.mozilla.org/en/DOM/window.crypto */
60 Window.prototype.crypto;
61
62 /**
63 * Gets/sets the status bar text for the given window.
64 * @type {string}
65 * @see https://developer.mozilla.org/en/DOM/window.defaultStatus
66 */
67 Window.prototype.defaultStatus;
68
69 /** @see https://developer.mozilla.org/en/DOM/window.dialogArguments */
70 Window.prototype.dialogArguments;
71
72 /** @see https://developer.mozilla.org/en/DOM/window.directories */
73 Window.prototype.directories;
74
75 /**
76 * @type {!Document}
77 * @see https://developer.mozilla.org/en/DOM/window.document
78 */
79 Window.prototype.document;
80
81 Window.prototype.eval;
82
83 /**
84 * @type {HTMLObjectElement|HTMLIFrameElement|null}
85 * @see https://developer.mozilla.org/en/DOM/window.frameElement
86 */
87 Window.prototype.frameElement;
88
89 /**
90 * Allows lookup of frames by index or by name.
91 * @type {?Object}
92 * @see https://developer.mozilla.org/en/DOM/window.frames
93 */
94 Window.prototype.frames;
95
96 /**
97 * @type {boolean}
98 * @see https://developer.mozilla.org/en/DOM/window.fullScreen
99 */
100 Window.prototype.fullScreen;
101
102 /**
103 * @see https://developer.mozilla.org/en/DOM/Storage#globalStorage
104 */
105 Window.prototype.globalStorage;
106
107 /**
108 * @type {!History}
109 * @see https://developer.mozilla.org/en/DOM/window.history
110 */
111 Window.prototype.history;
112
113 /**
114 * Returns the number of frames (either frame or iframe elements) in the
115 * window.
116 *
117 * @type {number}
118 * @see https://developer.mozilla.org/en/DOM/window.length
119 */
120 Window.prototype.length;
121
122 /**
123 * @type {!Location}
124 * @implicitCast
125 * @see https://developer.mozilla.org/en/DOM/window.location
126 */
127 Window.prototype.location;
128
129 /**
130 * @see https://developer.mozilla.org/en/DOM/window.locationbar
131 */
132 Window.prototype.locationbar;
133
134 /**
135 * @see https://developer.mozilla.org/en/DOM/window.menubar
136 */
137 Window.prototype.menubar;
138
139 /**
140 * @type {string}
141 * @see https://developer.mozilla.org/en/DOM/window.name
142 */
143 Window.prototype.name;
144
145 /**
146 * @type {Navigator}
147 * @see https://developer.mozilla.org/en/DOM/window.navigator
148 */
149 Window.prototype.navigator;
150
151 /**
152 * @type {?Window}
153 * @see https://developer.mozilla.org/en/DOM/window.opener
154 */
155 Window.prototype.opener;
156
157 /**
158 * @type {!Window}
159 * @see https://developer.mozilla.org/en/DOM/window.parent
160 */
161 Window.prototype.parent;
162
163 /** @see https://developer.mozilla.org/en/DOM/window.personalbar */
164 Window.prototype.personalbar;
165
166 /** @see https://developer.mozilla.org/en/DOM/window.pkcs11 */
167 Window.prototype.pkcs11;
168
169 /** @see https://developer.mozilla.org/en/DOM/window */
170 Window.prototype.returnValue;
171
172 /** @see https://developer.mozilla.org/en/DOM/window.scrollbars */
173 Window.prototype.scrollbars;
174
175 /**
176 * @type {number}
177 * @see https://developer.mozilla.org/En/DOM/window.scrollMaxX
178 */
179 Window.prototype.scrollMaxX;
180
181 /**
182 * @type {number}
183 * @see https://developer.mozilla.org/En/DOM/window.scrollMaxY
184 */
185 Window.prototype.scrollMaxY;
186
187 /**
188 * @type {!Window}
189 * @see https://developer.mozilla.org/en/DOM/window.self
190 */
191 Window.prototype.self;
192
193 /** @see https://developer.mozilla.org/en/DOM/Storage#sessionStorage */
194 Window.prototype.sessionStorage;
195
196 /** @see https://developer.mozilla.org/en/DOM/window.sidebar */
197 Window.prototype.sidebar;
198
199 /**
200 * @type {?string}
201 * @see https://developer.mozilla.org/en/DOM/window.status
202 */
203 Window.prototype.status;
204
205 /** @see https://developer.mozilla.org/en/DOM/window.statusbar */
206 Window.prototype.statusbar;
207
208 /** @see https://developer.mozilla.org/en/DOM/window.toolbar */
209 Window.prototype.toolbar;
210
211 /**
212 * @type {!Window}
213 * @see https://developer.mozilla.org/en/DOM/window.self
214 */
215 Window.prototype.top;
216
217 /**
218 * @type {!Window}
219 * @see https://developer.mozilla.org/en/DOM/window.self
220 */
221 Window.prototype.window;
222
223 /**
224 * @param {*} message
225 * @see https://developer.mozilla.org/en/DOM/window.alert
226 */
227 Window.prototype.alert = function(message) {};
228
229 /**
230 * Decodes a string of data which has been encoded using base-64 encoding.
231 *
232 * @param {string} encodedData
233 * @see https://developer.mozilla.org/en/DOM/window.atob
234 * @nosideeffects
235 */
236 Window.prototype.atob = function(encodedData) {};
237
238 /** @see https://developer.mozilla.org/en/DOM/window.back */
239 Window.prototype.back = function() {};
240
241 /** @see https://developer.mozilla.org/en/DOM/window.blur */
242 Window.prototype.blur = function() {};
243
244 /**
245 * @param {string} stringToEncode
246 * @return {string}
247 * @see https://developer.mozilla.org/en/DOM/window.btoa
248 * @nosideeffects
249 */
250 Window.prototype.btoa = function(stringToEncode) {};
251
252 /** @deprecated */
253 Window.prototype.captureEvents;
254
255 /**
256 * @param {number|undefined?} intervalID
257 * @see https://developer.mozilla.org/en/DOM/window.clearInterval
258 */
259 Window.prototype.clearInterval = function(intervalID) {};
260
261 /**
262 * @param {number|undefined?} timeoutID
263 * @see https://developer.mozilla.org/en/DOM/window.clearTimeout
264 */
265 Window.prototype.clearTimeout = function(timeoutID) {};
266
267 /** @see https://developer.mozilla.org/en/DOM/window.close */
268 Window.prototype.close = function() {};
269
270 /**
271 * @param {*} message
272 * @return {boolean}
273 */
274 Window.prototype.confirm = function(message) {};
275
276 /**
277 * @param {string} regular
278 * @return {string}
279 * @see https://developer.mozilla.org/en/DOM/window.escape
280 * @nosideeffects
281 */
282 Window.prototype.escape = function(regular) {};
283
284 /** @see https://developer.mozilla.org/en/DOM/window.find */
285 Window.prototype.find;
286
287 /** @see https://developer.mozilla.org/en/DOM/window.focus */
288 Window.prototype.focus = function() {};
289
290 /** @see https://developer.mozilla.org/en/DOM/window.forward */
291 Window.prototype.forward = function() {};
292
293 /** @see https://developer.mozilla.org/en/DOM/window.getAttention */
294 Window.prototype.getAttention = function() {};
295
296 /**
297 * @param {Element} element
298 * @param {?string} pseudoElt
299 * @return {CSSStyleDeclaration}
300 * @nosideeffects
301 */
302 Window.prototype.getComputedStyle = function(element, pseudoElt) {};
303
304 /**
305 * @return {Selection}
306 * @see https://developer.mozilla.org/en/DOM/window.getSelection
307 * @nosideeffects
308 */
309 Window.prototype.getSelection = function() {};
310
311 /** @see https://developer.mozilla.org/en/DOM/window.home */
312 Window.prototype.home = function() {};
313
314 Window.prototype.openDialog;
315 Window.prototype.releaseEvents;
316 Window.prototype.scrollByLines;
317 Window.prototype.scrollByPages;
318
319 /**
320 * @param {Function|string} callback
321 * @param {number} delay
322 * @param {...*} var_args
323 * @return {number}
324 */
325 Window.prototype.setInterval;
326
327 /**
328 * @param {Function|string} callback
329 * @param {number} delay
330 * @param {...*} var_args
331 * @return {number}
332 */
333 Window.prototype.setTimeout = function(callback, delay, var_args) {};
334
335 /**
336 * @param {string} uri
337 * @param {?=} opt_arguments
338 * @param {string=} opt_options
339 * @see https://developer.mozilla.org/en/DOM/window.showModalDialog
340 */
341 Window.prototype.showModalDialog;
342
343 Window.prototype.sizeToContent;
344
345 /**
346 * @see http://msdn.microsoft.com/en-us/library/ms536769(VS.85).aspx
347 */
348 Window.prototype.stop = function() {};
349
350 /**
351 * @param {string} escaped
352 * @return {string}
353 * @see https://developer.mozilla.org/en/DOM/window.unescape
354 * @nosideeffects
355 */
356 Window.prototype.unescape = function(escaped) {};
357
358 Window.prototype.updateCommands;
359
360 // properties of Document
361
362 /**
363 * @see https://developer.mozilla.org/en/DOM/document.alinkColor
364 * @type {string}
365 */
366 Document.prototype.alinkColor;
367
368 /**
369 * @see https://developer.mozilla.org/en/DOM/document.anchors
370 * @type {HTMLCollection}
371 */
372 Document.prototype.anchors;
373
374 /**
375 * @see https://developer.mozilla.org/en/DOM/document.applets
376 * @type {HTMLCollection}
377 */
378 Document.prototype.applets;
379 /** @type {boolean} */ Document.prototype.async;
380 /** @type {string?} */ Document.prototype.baseURI;
381 Document.prototype.baseURIObject;
382
383 /**
384 * @see https://developer.mozilla.org/en/DOM/document.bgColor
385 * @type {string}
386 */
387 Document.prototype.bgColor;
388
389 /** @type {HTMLBodyElement} */ Document.prototype.body;
390 Document.prototype.characterSet;
391
392 /**
393 * @see https://developer.mozilla.org/en/DOM/document.compatMode
394 * @type {string}
395 */
396 Document.prototype.compatMode;
397
398 Document.prototype.contentType;
399 /** @type {string} */ Document.prototype.cookie;
400 Document.prototype.defaultView;
401
402 /**
403 * @see https://developer.mozilla.org/en/DOM/document.designMode
404 * @type {string}
405 */
406 Document.prototype.designMode;
407
408 Document.prototype.documentURIObject;
409
410 /**
411 * @see https://developer.mozilla.org/en/DOM/document.domain
412 * @type {string}
413 */
414 Document.prototype.domain;
415
416 /**
417 * @see https://developer.mozilla.org/en/DOM/document.embeds
418 * @type {HTMLCollection}
419 */
420 Document.prototype.embeds;
421
422 /**
423 * @see https://developer.mozilla.org/en/DOM/document.fgColor
424 * @type {string}
425 */
426 Document.prototype.fgColor;
427
428 /** @type {Element} */ Document.prototype.firstChild;
429
430 /**
431 * @see https://developer.mozilla.org/en/DOM/document.forms
432 * @type {HTMLCollection}
433 */
434 Document.prototype.forms;
435
436 /** @type {number} */ Document.prototype.height;
437 /** @type {Array} */ Document.prototype.images;
438
439 /**
440 * @type {string}
441 * @see https://developer.mozilla.org/en/DOM/document.lastModified
442 */
443 Document.prototype.lastModified;
444
445 /**
446 * @type {string}
447 * @see https://developer.mozilla.org/en/DOM/document.linkColor
448 */
449 Document.prototype.linkColor;
450
451 /**
452 * @see https://developer.mozilla.org/en/DOM/document.links
453 * @type {HTMLCollection}
454 */
455 Document.prototype.links;
456
457 /**
458 * @type {!Location}
459 * @implicitCast
460 */
461 Document.prototype.location;
462
463 /**
464 * @type {string}
465 * @see https://developer.mozilla.org/en/DOM/Using_the_Page_Visibility_API
466 */
467 Document.prototype.mozVisibilityState;
468
469 Document.prototype.namespaceURI;
470 Document.prototype.nodePrincipal;
471 Document.prototype.plugins;
472 Document.prototype.popupNode;
473
474 /**
475 * @type {string}
476 * @see https://developer.mozilla.org/en/DOM/document.referrer
477 */
478 Document.prototype.referrer;
479
480 /**
481 * @see https://developer.mozilla.org/en/DOM/document.styleSheets
482 */
483 Document.prototype.styleSheets;
484
485 /** @type {?string} */ Document.prototype.title;
486 Document.prototype.tooltipNode;
487 /** @type {string} */ Document.prototype.URL;
488
489 /**
490 * @type {string}
491 * @see https://developer.mozilla.org/en/DOM/document.vlinkColor
492 */
493 Document.prototype.vlinkColor;
494
495 /** @type {number} */ Document.prototype.width;
496
497 // Methods of Document
498 /**
499 * @see https://developer.mozilla.org/en/DOM/document.clear
500 */
501 Document.prototype.clear = function() {};
502
503 /**
504 * @see https://developer.mozilla.org/en/DOM/document.close
505 */
506 Document.prototype.close;
507
508 /**
509 * @see https://developer.mozilla.org/en/DOM/document.createElementNS
510 * @param {string} namespaceURI
511 * @param {string} qualifiedName
512 * @return {!Element}
513 */
514 Document.prototype.createElementNS = function(namespaceURI, qualifiedName) {};
515
516 /**
517 * @param {string} type
518 * @return {Event}
519 */
520 Document.prototype.createEvent = function(type) {};
521 Document.prototype.createNSResolver;
522 /** @return {Range} */ Document.prototype.createRange = function() {};
523 Document.prototype.createTreeWalker;
524
525 Document.prototype.evaluate;
526
527 /**
528 * @param {string} commandName
529 * @param {?boolean=} opt_showUi
530 * @param {*=} opt_value
531 * @see https://developer.mozilla.org/en/Rich-Text_Editing_in_Mozilla#Executing_Commands
532 */
533 Document.prototype.execCommand;
534
535 /**
536 * @param {string} s id.
537 * @return {HTMLElement}
538 * @nosideeffects
539 * @see https://developer.mozilla.org/en/DOM/document.getElementById
540 */
541 Document.prototype.getElementById = function(s) {};
542
543 /**
544 * @param {string} name
545 * @return {!NodeList}
546 * @nosideeffects
547 * @see https://developer.mozilla.org/en/DOM/document.getElementsByClassName
548 */
549 Document.prototype.getElementsByClassName = function(name) {};
550
551 /**
552 * @param {string} name
553 * @return {!NodeList}
554 * @nosideeffects
555 * @see https://developer.mozilla.org/en/DOM/document.getElementsByName
556 */
557 Document.prototype.getElementsByName = function(name) {};
558
559 /**
560 * @param {string} namespace
561 * @param {string} name
562 * @return {!NodeList}
563 * @nosideeffects
564 * @see https://developer.mozilla.org/en/DOM/document.getElementsByTagNameNS
565 */
566 Document.prototype.getElementsByTagNameNS = function(namespace, name) {};
567
568 /**
569 * @param {Node} externalNode
570 * @param {boolean} deep
571 * @return {Node}
572 */
573 Document.prototype.importNode = function(externalNode, deep) {};
574
575 /** @param {string} uri */
576 Document.prototype.load = function(uri) {};
577 Document.prototype.loadOverlay;
578
579 /**
580 * @see https://developer.mozilla.org/en/DOM/document.open
581 */
582 Document.prototype.open;
583
584 /**
585 * @see https://developer.mozilla.org/en/Midas
586 * @see http://msdn.microsoft.com/en-us/library/ms536676(VS.85).aspx
587 */
588 Document.prototype.queryCommandEnabled;
589
590 /**
591 * @see https://developer.mozilla.org/en/Midas
592 * @see http://msdn.microsoft.com/en-us/library/ms536678(VS.85).aspx
593 */
594 Document.prototype.queryCommandIndeterm;
595
596 /**
597 * @see https://developer.mozilla.org/en/Midas
598 * @see http://msdn.microsoft.com/en-us/library/ms536679(VS.85).aspx
599 */
600 Document.prototype.queryCommandState;
601
602 /**
603 * @see https://developer.mozilla.org/en/DOM/document.queryCommandSupported
604 * @see http://msdn.microsoft.com/en-us/library/ms536681(VS.85).aspx
605 * @param {string} command
606 * @return {?} Implementation-specific.
607 */
608 Document.prototype.queryCommandSupported;
609
610 /**
611 * @see https://developer.mozilla.org/en/Midas
612 * @see http://msdn.microsoft.com/en-us/library/ms536683(VS.85).aspx
613 */
614 Document.prototype.queryCommandValue;
615
616 /**
617 * @see https://developer.mozilla.org/en/DOM/document.write
618 * @param {string} text
619 */
620 Document.prototype.write = function(text) {};
621
622 /**
623 * @see https://developer.mozilla.org/en/DOM/document.writeln
624 * @param {string} text
625 */
626 Document.prototype.writeln = function(text) {};
627
628 Document.prototype.ononline;
629 Document.prototype.onoffline;
630
631 // XUL
632 /**
633 * @see http://developer.mozilla.org/en/DOM/document.getBoxObjectFor
634 * @return {BoxObject}
635 * @nosideeffects
636 */
637 Document.prototype.getBoxObjectFor = function(element) {};
638
639 // From:
640 // http://lxr.mozilla.org/mozilla1.8/source/dom/public/idl/range/nsIDOMNSRange.idl
641
642 /**
643 * @param {string} tag
644 * @return {DocumentFragment}
645 */
646 Range.prototype.createContextualFragment;
647
648 /**
649 * @param {Node} parent
650 * @param {number} offset
651 * @return {boolean}
652 * @nosideeffects
653 */
654 Range.prototype.isPointInRange;
655
656 /**
657 * @param {Node} parent
658 * @param {number} offset
659 * @return {number}
660 * @nosideeffects
661 */
662 Range.prototype.comparePoint;
663
664 /**
665 * @param {Node} n
666 * @return {boolean}
667 * @nosideeffects
668 */
669 Range.prototype.intersectsNode;
670
671 /**
672 * @param {Node} n
673 * @return {number}
674 * @nosideeffects
675 */
676 Range.prototype.compareNode;
677
678
679 /** @constructor */
680 function Selection() {}
681
682 /**
683 * @type {Node}
684 * @see https://developer.mozilla.org/en/DOM/Selection/anchorNode
685 */
686 Selection.prototype.anchorNode;
687
688 /**
689 * @type {number}
690 * @see https://developer.mozilla.org/en/DOM/Selection/anchorOffset
691 */
692 Selection.prototype.anchorOffset;
693
694 /**
695 * @type {Node}
696 * @see https://developer.mozilla.org/en/DOM/Selection/focusNode
697 */
698 Selection.prototype.focusNode;
699
700 /**
701 * @type {number}
702 * @see https://developer.mozilla.org/en/DOM/Selection/focusOffset
703 */
704 Selection.prototype.focusOffset;
705
706 /**
707 * @type {boolean}
708 * @see https://developer.mozilla.org/en/DOM/Selection/isCollapsed
709 */
710 Selection.prototype.isCollapsed;
711
712 /**
713 * @type {number}
714 * @see https://developer.mozilla.org/en/DOM/Selection/rangeCount
715 */
716 Selection.prototype.rangeCount;
717
718 /**
719 * @param {Range} range
720 * @return {undefined}
721 * @see https://developer.mozilla.org/en/DOM/Selection/addRange
722 */
723 Selection.prototype.addRange = function(range) {};
724
725 /**
726 * @param {number} index
727 * @return {Range}
728 * @see https://developer.mozilla.org/en/DOM/Selection/getRangeAt
729 * @nosideeffects
730 */
731 Selection.prototype.getRangeAt = function(index) {};
732
733 /**
734 * @param {Node} node
735 * @param {number} index
736 * @return {undefined}
737 * @see https://developer.mozilla.org/en/DOM/Selection/collapse
738 */
739 Selection.prototype.collapse = function(node, index) {};
740
741 /**
742 * @return {undefined}
743 * @see https://developer.mozilla.org/en/DOM/Selection/collapseToEnd
744 */
745 Selection.prototype.collapseToEnd = function() {};
746
747 /**
748 * @return {undefined}
749 * @see https://developer.mozilla.org/en/DOM/Selection/collapseToStart
750 */
751 Selection.prototype.collapseToStart = function() {};
752
753 /**
754 * @param {Node} node
755 * @param {boolean} partlyContained
756 * @return {boolean}
757 * @see https://developer.mozilla.org/en/DOM/Selection/containsNode
758 * @nosideeffects
759 */
760 Selection.prototype.containsNode = function(node, partlyContained) {};
761
762 /**
763 * @see https://developer.mozilla.org/en/DOM/Selection/deleteFromDocument
764 */
765 Selection.prototype.deleteFromDocument = function() {};
766
767 /**
768 * @param {Node} parentNode
769 * @param {number} offset
770 * @see https://developer.mozilla.org/en/DOM/Selection/extend
771 */
772 Selection.prototype.extend = function(parentNode, offset) {};
773
774 /**
775 * @see https://developer.mozilla.org/en/DOM/Selection/removeAllRanges
776 */
777 Selection.prototype.removeAllRanges = function() {};
778
779 /**
780 * @param {Range} range
781 * @see https://developer.mozilla.org/en/DOM/Selection/removeRange
782 */
783 Selection.prototype.removeRange = function(range) {};
784
785 /**
786 * @param {Node} parentNode
787 * @see https://developer.mozilla.org/en/DOM/Selection/selectAllChildren
788 */
789 Selection.prototype.selectAllChildren;
790
791 /**
792 * @see https://developer.mozilla.org/en/DOM/Selection/selectionLanguageChange
793 */
794 Selection.prototype.selectionLanguageChange;
795
796 /** @type {NamedNodeMap} */ Element.prototype.attributes;
797 Element.prototype.baseURIObject;
798 /** @type {!NodeList} */ Element.prototype.childNodes;
799
800 /**
801 * @type {!NodeList}
802 * @see https://developer.mozilla.org/en/DOM/element.children
803 */
804 Element.prototype.children;
805
806 /**
807 * @type {string}
808 * @implicitCast
809 */
810 Element.prototype.className;
811 /** @type {string} */ Element.prototype.dir;
812
813 /**
814 * Firebug sets this property on elements it is inserting into the DOM.
815 * @type {boolean}
816 */
817 Element.prototype.firebugIgnore;
818
819 /** @type {Node} */ Element.prototype.firstChild;
820 /**
821 * @type {string}
822 * @implicitCast
823 */
824 Element.prototype.id;
825 /**
826 * @type {string}
827 * @implicitCast
828 */
829 Element.prototype.innerHTML;
830 /** @type {string} */ Element.prototype.lang;
831 /** @type {Node} */ Element.prototype.lastChild;
832 Element.prototype.localName;
833 Element.prototype.name;
834 Element.prototype.namespaceURI;
835 /** @type {Node} */ Element.prototype.nextSibling;
836 Element.prototype.nodeName;
837 Element.prototype.nodePrincipal;
838 /** @type {number} */ Element.prototype.nodeType;
839 Element.prototype.nodeValue;
840 /** @type {Document} */ Element.prototype.ownerDocument;
841 /** @type {Node} */ Element.prototype.parentNode;
842 Element.prototype.prefix;
843 /** @type {Node} */ Element.prototype.previousSibling;
844 /** @type {CSSStyleDeclaration} */ Element.prototype.style;
845 /**
846 * @type {number}
847 * @implicitCast
848 */
849 Element.prototype.tabIndex;
850
851 /**
852 * @type {string}
853 * @implicitCast
854 */
855 Element.prototype.textContent;
856 /** @type {string} */ Element.prototype.title;
857
858 /**
859 * @param {Node} child
860 * @return {Node} appendedElement.
861 * @override
862 */
863 Element.prototype.appendChild = function(child) {};
864
865 /**
866 * @override
867 * @return {Element}
868 */
869 Element.prototype.cloneNode = function(deep) {};
870
871 /** @override */
872 Element.prototype.dispatchEvent = function(event) {};
873
874 /** @return {undefined} */
875 Element.prototype.blur = function() {};
876
877 /** @return {undefined} */
878 Element.prototype.click = function() {};
879
880 /** @return {undefined} */
881 Element.prototype.focus = function() {};
882
883 /**
884 * @return {boolean}
885 * @override
886 * @nosideeffects
887 */
888 Element.prototype.hasAttributes = function() {};
889
890 /**
891 * @return {boolean}
892 * @override
893 * @nosideeffects
894 */
895 Element.prototype.hasChildNodes = function() {};
896
897 /** @override */
898 Element.prototype.insertBefore = function(insertedNode, adjacentNode) {};
899
900 /**
901 * @return {undefined}
902 * @override
903 */
904 Element.prototype.normalize = function() {};
905
906 /**
907 * @param {Node} removedNode
908 * @return {Node}
909 * @override
910 */
911 Element.prototype.removeChild = function(removedNode) {};
912
913 /** @override */
914 Element.prototype.removeEventListener = function(type, handler, useCapture) {};
915
916 /** @override */
917 Element.prototype.replaceChild = function(insertedNode, replacedNode) {};
918
919 /** @type {number} */
920 HTMLInputElement.prototype.selectionStart;
921
922 /** @type {number} */
923 HTMLInputElement.prototype.selectionEnd;
924
925 /**
926 * @param {number} selectionStart
927 * @param {number} selectionEnd
928 * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#dom-textarea/input-setselectionrange
929 */
930 HTMLInputElement.prototype.setSelectionRange =
931 function(selectionStart, selectionEnd) {};
932
933 /** @type {number} */
934 HTMLTextAreaElement.prototype.selectionStart;
935
936 /** @type {number} */
937 HTMLTextAreaElement.prototype.selectionEnd;
938
939 /**
940 * @param {number} selectionStart
941 * @param {number} selectionEnd
942 * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#dom-textarea/input-setselectionrange
943 */
944 HTMLTextAreaElement.prototype.setSelectionRange =
945 function(selectionStart, selectionEnd) {};
946
947 /** @constructor */
948 function Navigator() {}
949
950 /**
951 * @type {string}
952 * @see https://developer.mozilla.org/en/Navigator.appCodeName
953 */
954 Navigator.prototype.appCodeName;
955
956 /**
957 * @type {string}
958 * @see https://developer.mozilla.org/en/Navigator.appVersion
959 */
960 Navigator.prototype.appName;
961
962 /**
963 * @type {string}
964 * @see https://developer.mozilla.org/en/Navigator.appVersion
965 */
966 Navigator.prototype.appVersion;
967
968 /**
969 * @type {string}
970 * @see https://developer.mozilla.org/en/Navigator.buildID
971 */
972 Navigator.prototype.buildID;
973
974 /**
975 * @type {boolean}
976 * @see https://developer.mozilla.org/en/Navigator.cookieEnabled
977 */
978 Navigator.prototype.cookieEnabled;
979
980 /**
981 * @type {string}
982 * @see https://developer.mozilla.org/en/Navigator.language
983 */
984 Navigator.prototype.language;
985
986 /**
987 * @type {MimeTypeArray}
988 * @see https://developer.mozilla.org/en/Navigator.mimeTypes
989 */
990 Navigator.prototype.mimeTypes;
991
992 /**
993 * @type {boolean}
994 * @see https://developer.mozilla.org/en/Navigator.onLine
995 */
996 Navigator.prototype.onLine;
997
998 /**
999 * @type {string}
1000 * @see https://developer.mozilla.org/en/Navigator.oscpu
1001 */
1002 Navigator.prototype.oscpu;
1003
1004 /**
1005 * @type {string}
1006 * @see https://developer.mozilla.org/en/Navigator.platform
1007 */
1008 Navigator.prototype.platform;
1009
1010 /**
1011 * @type {PluginArray}
1012 * @see https://developer.mozilla.org/en/Navigator.plugins
1013 */
1014 Navigator.prototype.plugins;
1015
1016 /**
1017 * @type {string}
1018 * @see https://developer.mozilla.org/en/Navigator.product
1019 */
1020 Navigator.prototype.product;
1021
1022 /**
1023 * @type {string}
1024 * @see https://developer.mozilla.org/en/Navigator.productSub
1025 */
1026 Navigator.prototype.productSub;
1027
1028 /**
1029 * @type {string}
1030 * @see https://developer.mozilla.org/en/Navigator.securityPolicy
1031 */
1032 Navigator.prototype.securityPolicy;
1033
1034 /**
1035 * @type {string}
1036 * @see https://developer.mozilla.org/en/Navigator.userAgent
1037 */
1038 Navigator.prototype.userAgent;
1039
1040 /**
1041 * @type {string}
1042 * @see https://developer.mozilla.org/en/Navigator.vendor
1043 */
1044 Navigator.prototype.vendor;
1045
1046 /**
1047 * @type {string}
1048 * @see https://developer.mozilla.org/en/Navigator.vendorSub
1049 */
1050 Navigator.prototype.vendorSub;
1051
1052 /**
1053 * @type {function(): boolean}
1054 * @see https://developer.mozilla.org/en/Navigator.javaEnabled
1055 * @nosideeffects
1056 */
1057 Navigator.prototype.javaEnabled = function() {};
1058
1059 /**
1060 * @constructor
1061 * @see https://developer.mozilla.org/en/DOM/PluginArray
1062 */
1063 function PluginArray() {}
1064
1065 /** @type {number} */
1066 PluginArray.prototype.length;
1067
1068 /**
1069 * @param {number} index
1070 * @return {Plugin}
1071 */
1072 PluginArray.prototype.item = function(index) {};
1073
1074 /**
1075 * @param {string} name
1076 * @return {Plugin}
1077 */
1078 PluginArray.prototype.namedItem = function(name) {};
1079
1080 /** @param {boolean=} reloadDocuments */
1081 PluginArray.prototype.refresh = function(reloadDocuments) {};
1082
1083 /** @constructor */
1084 function MimeTypeArray() {}
1085
1086 /**
1087 * @param {number} index
1088 * @return {MimeType}
1089 */
1090 MimeTypeArray.prototype.item = function(index) {};
1091
1092 /**
1093 * @type {number}
1094 * @see https://developer.mozilla.org/en/DOM/window.navigator.mimeTypes
1095 */
1096 MimeTypeArray.prototype.length;
1097
1098 /**
1099 * @param {string} name
1100 * @return {MimeType}
1101 */
1102 MimeTypeArray.prototype.namedItem = function(name) {};
1103
1104 /** @constructor */
1105 function MimeType() {}
1106
1107 /** @type {string} */
1108 MimeType.prototype.description;
1109
1110 /** @type {Plugin} */
1111 MimeType.prototype.enabledPlugin;
1112
1113 /** @type {string} */
1114 MimeType.prototype.suffixes;
1115
1116 /** @type {string} */
1117 MimeType.prototype.type;
1118
1119 /** @constructor */
1120 function Plugin() {}
1121
1122 /** @type {string} */
1123 Plugin.prototype.description;
1124
1125 /** @type {string} */
1126 Plugin.prototype.filename;
1127
1128 /** @type {number} */
1129 Plugin.prototype.length;
1130
1131 /** @type {string} */
1132 Plugin.prototype.name;
1133
1134 /** @constructor */
1135 function BoxObject() {}
1136
1137 /** @type {Element} */
1138 BoxObject.prototype.element;
1139
1140 /** @type {number} */
1141 BoxObject.prototype.screenX;
1142
1143 /** @type {number} */
1144 BoxObject.prototype.screenY;
1145
1146 /** @type {number} */
1147 BoxObject.prototype.x;
1148
1149 /** @type {number} */
1150 BoxObject.prototype.y;
1151
1152 /** @type {number} */
1153 BoxObject.prototype.width;
1154
1155
1156 /**
1157 * @type {number}
1158 * @see http://www.google.com/codesearch/p?hl=en#eksvcKKj5Ng/mozilla/dom/public/idl/html/nsIDOMNSHTMLImageElement.idl&q=naturalWidth
1159 */
1160 HTMLImageElement.prototype.naturalWidth;
1161
1162 /**
1163 * @type {number}
1164 * @see http://www.google.com/codesearch/p?hl=en#eksvcKKj5Ng/mozilla/dom/public/idl/html/nsIDOMNSHTMLImageElement.idl&q=naturalHeight
1165 */
1166 HTMLImageElement.prototype.naturalHeight;