Source code
Revision control
Copy as Markdown
Other Tools
/*
* Copyright 2008 The Closure Compiler Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @fileoverview Definitions for W3C's DOM Level 2 specification.
* This file depends on w3c_dom1.js.
* The whole file has been fully type annotated.
* Created from
*
* @externs
* @author stevey@google.com (Steve Yegge)
*/
// All the provided definitions have been type annotated.
/**
* @constructor
*/
function HTMLCollection() {}
/**
* @type {number}
*/
HTMLCollection.prototype.length;
/**
* @param {number} index
* @return {Node}
* @nosideeffects
*/
HTMLCollection.prototype.item = function(index) {};
/**
* @constructor
*/
function HTMLOptionsCollection() {}
/**
* @type {number}
*/
HTMLOptionsCollection.prototype.length;
/**
* @param {number} index
* @return {Node}
* @nosideeffects
*/
HTMLOptionsCollection.prototype.item = function(index) {};
/**
* @constructor
* @extends {Document}
*/
function HTMLDocument() {}
/**
* @type {string}
*/
HTMLDocument.prototype.title;
/**
* @type {string}
*/
HTMLDocument.prototype.referrer;
/**
* @type {string}
*/
HTMLDocument.prototype.domain;
/**
* @type {string}
*/
HTMLDocument.prototype.URL;
/**
* @type {HTMLBodyElement}
*/
HTMLDocument.prototype.body;
/**
* @type {HTMLCollection}
*/
HTMLDocument.prototype.images;
/**
* @type {HTMLCollection}
*/
HTMLDocument.prototype.applets;
/**
* @type {HTMLCollection}
*/
HTMLDocument.prototype.links;
/**
* @type {HTMLCollection}
*/
HTMLDocument.prototype.forms;
/**
* @type {HTMLCollection}
*/
HTMLDocument.prototype.anchors;
/**
* @type {string}
*/
HTMLDocument.prototype.cookie;
/**
* @return {undefined}
* @override
*/
HTMLDocument.prototype.open = function() {};
/**
* @return {undefined}
* @override
*/
HTMLDocument.prototype.close = function() {};
/**
* @param {string} text
* @return {undefined}
* @override
*/
HTMLDocument.prototype.write = function(text) {};
/**
* @param {string} text
* @return {undefined}
* @override
*/
HTMLDocument.prototype.writeln = function(text) {};
/**
* @param {string} elementName
* @return {!NodeList}
* @override
* @nosideeffects
*/
HTMLDocument.prototype.getElementsByName = function(elementName) {};
/**
* @param {Node} root
* @param {number=} whatToShow
* @param {NodeFilter=} filter
* @param {boolean=} entityReferenceExpansion
* @return {!NodeIterator}
* @nosideeffects
*/
HTMLDocument.prototype.createNodeIterator = function(
root, whatToShow, filter, entityReferenceExpansion) {};
/**
* @param {Node} root
* @param {number=} whatToShow
* @param {NodeFilter=} filter
* @param {boolean=} entityReferenceExpansion
* @return {!TreeWalker}
* @nosideeffects
*/
HTMLDocument.prototype.createTreeWalker = function(
root, whatToShow, filter, entityReferenceExpansion) {};
/** @typedef {{
createNodeIterator: function(Node, number=, NodeFilter=, boolean=) : NodeIterator,
createTreeWalker: function(Node, number=, NodeFilter=, boolean=) : TreeWalker
}} */
var TraversalDocument;
/**
* @interface
*/
function NodeFilter() {}
/* Constants for whatToShow */
/** @const {number} */ NodeFilter.SHOW_ALL;
/** @const {number} */ NodeFilter.SHOW_ATTRIBUTE;
/** @const {number} */ NodeFilter.SHOW_CDATA_SECTION;
/** @const {number} */ NodeFilter.SHOW_COMMENT;
/** @const {number} */ NodeFilter.SHOW_DOCUMENT;
/** @const {number} */ NodeFilter.SHOW_DOCUMENT_FRAGMENT;
/** @const {number} */ NodeFilter.SHOW_DOCUMENT_TYPE;
/** @const {number} */ NodeFilter.SHOW_ELEMENT;
/** @const {number} */ NodeFilter.SHOW_ENTITY;
/** @const {number} */ NodeFilter.SHOW_ENTITY_REFERENCE;
/** @const {number} */ NodeFilter.SHOW_NOTATION;
/** @const {number} */ NodeFilter.SHOW_PROCESSING_INSTRUCTION;
/** @const {number} */ NodeFilter.SHOW_TEXT;
/* Consants for acceptNode */
/** @const {number} */ NodeFilter.FILTER_ACCEPT;
/** @const {number} */ NodeFilter.FILTER_REJECT;
/** @const {number} */ NodeFilter.FILTER_SKIP;
/**
* @param {Node} n
* @return {number} Any of NodeFilter.FILTER_* constants.
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-NodeFilter-acceptNode
*/
NodeFilter.prototype.acceptNode = function(n) {};
/**
* @interface
*/
function NodeIterator() {}
/**
* Detach and invalidate the NodeIterator.
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-NodeIterator-detach
*/
NodeIterator.prototype.detach = function() {};
/**
* @return {Node} Next node in the set.
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-NodeIterator-nextNode
*/
NodeIterator.prototype.nextNode = function() {};
/**
* @return {Node} Previous node in the set.
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-NodeIterator-previousNode
*/
NodeIterator.prototype.previousNode = function() {};
/**
* @interface
*/
function TreeWalker() {}
/**
* @return {?Node} The new Node or null.
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-TreeWalker-firstChild
*/
TreeWalker.prototype.firstChild = function() {};
/**
* @return {?Node} The new Node or null..
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-TreeWalker-lastChild
*/
TreeWalker.prototype.lastChild = function() {};
/**
* @return {?Node} The new Node or null.
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-TreeWalker-nextNode
*/
TreeWalker.prototype.nextNode = function() {};
/**
* @return {?Node} The new Node or null.
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-TreeWalker-nextSibling
*/
TreeWalker.prototype.nextSibling = function() {};
/**
* @return {?Node} The new Node or null.
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-TreeWalker-parentNode
*/
TreeWalker.prototype.parentNode = function() {};
/**
* @return {?Node} The new Node or null.
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-TreeWalker-previousNode
*/
TreeWalker.prototype.previousNode = function() {};
/**
* @return {?Node} The new Node or null.
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-TreeWalker-previousSibling
*/
TreeWalker.prototype.previousSibling = function() {};
/**
* @type {Node}
*/
TreeWalker.prototype.root;
/**
* @type {number}
*/
TreeWalker.prototype.whatToShow;
/**
* @type {NodeFilter}
*/
TreeWalker.prototype.filter;
/**
* @type {boolean}
*/
TreeWalker.prototype.expandEntityReference;
/**
* @type {Node}
*/
TreeWalker.prototype.currentNode;
/**
* @constructor
* @extends {Element}
*/
function HTMLElement() {}
/**
* @implicitCast
* @type {string}
*/
HTMLElement.prototype.id;
/**
* @type {string}
*/
HTMLElement.prototype.title;
/**
* @type {string}
*/
HTMLElement.prototype.lang;
/**
* @type {string}
*/
HTMLElement.prototype.dir;
/**
* @implicitCast
* @type {string}
*/
HTMLElement.prototype.className;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLHtmlElement() {}
/**
* @type {string}
*/
HTMLHtmlElement.prototype.version;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLHeadElement() {}
/**
* @type {string}
*/
HTMLHeadElement.prototype.profile;
/**
* @constructor
* @extends {HTMLElement}
* @implements {LinkStyle}
*/
function HTMLLinkElement() {}
/**
* @type {boolean}
*/
HTMLLinkElement.prototype.disabled;
/**
* @type {string}
*/
HTMLLinkElement.prototype.charset;
/**
* @type {string}
*/
HTMLLinkElement.prototype.href;
/**
* @type {string}
*/
HTMLLinkElement.prototype.hreflang;
/**
* @type {string}
*/
HTMLLinkElement.prototype.media;
/**
* @type {string}
*/
HTMLLinkElement.prototype.rel;
/**
* @type {string}
*/
HTMLLinkElement.prototype.rev;
/**
* @type {string}
*/
HTMLLinkElement.prototype.target;
/**
* @type {string}
*/
HTMLLinkElement.prototype.type;
/** @type {StyleSheet} */
HTMLLinkElement.prototype.sheet;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLTitleElement() {}
/**
* @type {string}
*/
HTMLTitleElement.prototype.text;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLMetaElement() {}
/**
* @type {string}
*/
HTMLMetaElement.prototype.content;
/**
* @type {string}
*/
HTMLMetaElement.prototype.httpEquiv;
/**
* @type {string}
*/
HTMLMetaElement.prototype.name;
/**
* @type {string}
*/
HTMLMetaElement.prototype.scheme;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLBaseElement() {}
/**
* @type {string}
*/
HTMLBaseElement.prototype.href;
/**
* @type {string}
*/
HTMLBaseElement.prototype.target;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLIsIndexElement() {}
/**
* @type {HTMLFormElement}
*/
HTMLIsIndexElement.prototype.form;
/**
* @type {string}
*/
HTMLIsIndexElement.prototype.prompt;
/**
* @constructor
* @extends {HTMLElement}
* @implements {LinkStyle}
*/
function HTMLStyleElement() {}
/**
* @type {boolean}
*/
HTMLStyleElement.prototype.disabled;
/**
* @type {string}
*/
HTMLStyleElement.prototype.media;
/**
* @type {string}
*/
HTMLStyleElement.prototype.type;
/** @type {StyleSheet} */
HTMLStyleElement.prototype.sheet;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLBodyElement() {}
/**
* @type {string}
*/
HTMLBodyElement.prototype.aLink;
/**
* @type {string}
*/
HTMLBodyElement.prototype.background;
/**
* @type {string}
*/
HTMLBodyElement.prototype.bgColor;
/**
* @type {string}
*/
HTMLBodyElement.prototype.link;
/**
* @type {string}
*/
HTMLBodyElement.prototype.text;
/**
* @type {string}
*/
HTMLBodyElement.prototype.vLink;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLFormElement() {}
/**
* @type {HTMLCollection}
*/
HTMLFormElement.prototype.elements;
/**
* @type {number}
*/
HTMLFormElement.prototype.length;
/**
* @type {string}
*/
HTMLFormElement.prototype.name;
/**
* @type {string}
*/
HTMLFormElement.prototype.acceptCharset;
/**
* @type {string}
*/
HTMLFormElement.prototype.action;
/**
* @type {string}
*/
HTMLFormElement.prototype.enctype;
/**
* @type {string}
*/
HTMLFormElement.prototype.method;
/**
* @type {string}
*/
HTMLFormElement.prototype.target;
/**
* @return {undefined}
*/
HTMLFormElement.prototype.submit = function() {};
/**
* @return {undefined}
*/
HTMLFormElement.prototype.reset = function() {};
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLSelectElement() {}
/**
* @type {string}
*/
HTMLSelectElement.prototype.type;
/**
* @type {number}
*/
HTMLSelectElement.prototype.selectedIndex;
/**
* @type {string}
*/
HTMLSelectElement.prototype.value;
/**
* @type {number}
*/
HTMLSelectElement.prototype.length;
/**
* @type {HTMLFormElement}
*/
HTMLSelectElement.prototype.form;
/**
* @type {!HTMLOptionsCollection}
*/
HTMLSelectElement.prototype.options;
/**
* @type {boolean}
*/
HTMLSelectElement.prototype.disabled;
/**
* @type {boolean}
*/
HTMLSelectElement.prototype.multiple;
/**
* @type {string}
*/
HTMLSelectElement.prototype.name;
/**
* @type {number}
*/
HTMLSelectElement.prototype.size;
/**
* @type {number}
*/
HTMLSelectElement.prototype.tabIndex;
/**
* @param {HTMLElement} element
* @param {HTMLElement} before
* @return {undefined}
*/
HTMLSelectElement.prototype.add = function(element, before) {};
/**
* @return {undefined}
* @override
*/
HTMLSelectElement.prototype.blur = function() {};
/**
* @return {undefined}
* @override
*/
HTMLSelectElement.prototype.focus = function() {};
/**
* @param {number} index
* @return {undefined}
*/
HTMLSelectElement.prototype.remove = function(index) {};
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLOptGroupElement() {}
/**
* @type {boolean}
*/
HTMLOptGroupElement.prototype.disabled;
/**
* @type {string}
*/
HTMLOptGroupElement.prototype.label;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLOptionElement() {}
/**
* @type {boolean}
*/
HTMLOptionElement.prototype.defaultSelected;
/**
* @type {boolean}
*/
HTMLOptionElement.prototype.disabled;
/**
* @type {HTMLFormElement}
*/
HTMLOptionElement.prototype.form;
/**
* @type {number}
*/
HTMLOptionElement.prototype.index;
/**
* @type {string}
*/
HTMLOptionElement.prototype.label;
/**
* @type {boolean}
*/
HTMLOptionElement.prototype.selected;
/**
* @type {string}
*/
HTMLOptionElement.prototype.text;
/**
* @type {string}
*/
HTMLOptionElement.prototype.value;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLInputElement() {}
/**
* @type {string}
*/
HTMLInputElement.prototype.accept;
/**
* @type {string}
*/
HTMLInputElement.prototype.accessKey;
/**
* @type {string}
*/
HTMLInputElement.prototype.align;
/**
* @type {string}
*/
HTMLInputElement.prototype.alt;
/**
* @type {boolean}
*/
HTMLInputElement.prototype.checked;
/**
* @type {boolean}
*/
HTMLInputElement.prototype.defaultChecked;
/**
* @type {string}
*/
HTMLInputElement.prototype.defaultValue;
/**
* @type {boolean}
*/
HTMLInputElement.prototype.disabled;
/**
* @type {HTMLFormElement}
*/
HTMLInputElement.prototype.form;
/**
* @type {number}
*/
HTMLInputElement.prototype.maxLength;
/**
* @type {string}
*/
HTMLInputElement.prototype.name;
/**
* @type {boolean}
*/
HTMLInputElement.prototype.readOnly;
/**
* @type {number}
*/
HTMLInputElement.prototype.size;
/**
* @type {string}
*/
HTMLInputElement.prototype.src;
/**
* @type {number}
*/
HTMLInputElement.prototype.tabIndex;
/**
* @type {string}
*/
HTMLInputElement.prototype.type;
/**
* @type {string}
*/
HTMLInputElement.prototype.useMap;
/**
* @type {string}
*/
HTMLInputElement.prototype.value;
/**
* @return {undefined}
* @override
*/
HTMLInputElement.prototype.blur = function() {};
/**
* @return {undefined}
* @override
*/
HTMLInputElement.prototype.click = function() {};
/**
* @return {undefined}
* @override
*/
HTMLInputElement.prototype.focus = function() {};
/**
* @return {undefined}
*/
HTMLInputElement.prototype.select = function() {};
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLTextAreaElement() {}
/**
* @type {string}
*/
HTMLTextAreaElement.prototype.accessKey;
/**
* @type {number}
*/
HTMLTextAreaElement.prototype.cols;
/**
* @type {string}
*/
HTMLTextAreaElement.prototype.defaultValue;
/**
* @type {boolean}
*/
HTMLTextAreaElement.prototype.disabled;
/**
* @type {HTMLFormElement}
*/
HTMLTextAreaElement.prototype.form;
/**
* @type {string}
*/
HTMLTextAreaElement.prototype.name;
/**
* @type {boolean}
*/
HTMLTextAreaElement.prototype.readOnly;
/**
* @type {number}
*/
HTMLTextAreaElement.prototype.rows;
/**
* @type {number}
*/
HTMLTextAreaElement.prototype.tabIndex;
/**
* @type {string}
*/
HTMLTextAreaElement.prototype.type;
/**
* @type {string}
*/
HTMLTextAreaElement.prototype.value;
/**
* @return {undefined}
* @override
*/
HTMLTextAreaElement.prototype.blur = function() {};
/**
* @return {undefined}
* @override
*/
HTMLTextAreaElement.prototype.focus = function() {};
/**
* @return {undefined}
*/
HTMLTextAreaElement.prototype.select = function() {};
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLButtonElement() {}
/**
* @type {string}
*/
HTMLButtonElement.prototype.accessKey;
/**
* @type {boolean}
*/
HTMLButtonElement.prototype.disabled;
/**
* @type {HTMLFormElement}
*/
HTMLButtonElement.prototype.form;
/**
* @type {string}
*/
HTMLButtonElement.prototype.name;
/**
* @type {number}
*/
HTMLButtonElement.prototype.tabIndex;
/**
* @type {string}
*/
HTMLButtonElement.prototype.type;
/**
* @type {string}
*/
HTMLButtonElement.prototype.value;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLLabelElement() {}
/**
* @type {string}
*/
HTMLLabelElement.prototype.accessKey;
/**
* @type {HTMLFormElement}
*/
HTMLLabelElement.prototype.form;
/**
* @type {string}
*/
HTMLLabelElement.prototype.htmlFor;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLFieldSetElement() {}
/**
* @type {HTMLFormElement}
*/
HTMLFieldSetElement.prototype.form;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLLegendElement() {}
/**
* @type {string}
*/
HTMLLegendElement.prototype.accessKey;
/**
* @type {string}
*/
HTMLLegendElement.prototype.align;
/**
* @type {HTMLFormElement}
*/
HTMLLegendElement.prototype.form;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLUListElement() {}
/**
* @type {boolean}
*/
HTMLUListElement.prototype.compact;
/**
* @type {string}
*/
HTMLUListElement.prototype.type;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLOListElement() {}
/**
* @type {boolean}
*/
HTMLOListElement.prototype.compact;
/**
* @type {number}
*/
HTMLOListElement.prototype.start;
/**
* @type {string}
*/
HTMLOListElement.prototype.type;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLDListElement() {}
/**
* @type {boolean}
*/
HTMLDListElement.prototype.compact;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLDirectoryElement() {}
/**
* @type {boolean}
*/
HTMLDirectoryElement.prototype.compact;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLMenuElement() {}
/**
* @type {boolean}
*/
HTMLMenuElement.prototype.compact;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLLIElement() {}
/**
* @type {string}
*/
HTMLLIElement.prototype.type;
/**
* @type {number}
*/
HTMLLIElement.prototype.value;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLDivElement() {}
/**
* @type {string}
*/
HTMLDivElement.prototype.align;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLParagraphElement() {}
/**
* @type {string}
*/
HTMLParagraphElement.prototype.align;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLHeadingElement() {}
/**
* @type {string}
*/
HTMLHeadingElement.prototype.align;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLQuoteElement() {}
/**
* @type {string}
*/
HTMLQuoteElement.prototype.cite;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLPreElement() {}
/**
* @type {number}
*/
HTMLPreElement.prototype.width;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLBRElement() {}
/**
* @type {string}
*/
HTMLBRElement.prototype.clear;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLBaseFontElement() {}
/**
* @type {string}
*/
HTMLBaseFontElement.prototype.color;
/**
* @type {string}
*/
HTMLBaseFontElement.prototype.face;
/**
* @type {number}
*/
HTMLBaseFontElement.prototype.size;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLFontElement() {}
/**
* @type {string}
*/
HTMLFontElement.prototype.color;
/**
* @type {string}
*/
HTMLFontElement.prototype.face;
/**
* @type {string}
*/
HTMLFontElement.prototype.size;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLHRElement() {}
/**
* @type {string}
*/
HTMLHRElement.prototype.align;
/**
* @type {boolean}
*/
HTMLHRElement.prototype.noShade;
/**
* @type {string}
*/
HTMLHRElement.prototype.size;
/**
* @type {string}
*/
HTMLHRElement.prototype.width;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLModElement() {}
/**
* @type {string}
*/
HTMLModElement.prototype.cite;
/**
* @type {string}
*/
HTMLModElement.prototype.dateTime;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLAnchorElement() {}
/**
* @type {string}
*/
HTMLAnchorElement.prototype.accessKey;
/**
* @type {string}
*/
HTMLAnchorElement.prototype.charset;
/**
* @type {string}
*/
HTMLAnchorElement.prototype.coords;
/**
* @type {string}
*/
HTMLAnchorElement.prototype.href;
/**
* @type {string}
*/
HTMLAnchorElement.prototype.hreflang;
/**
* @type {string}
*/
HTMLAnchorElement.prototype.name;
/**
* @type {string}
*/
HTMLAnchorElement.prototype.rel;
/**
* @type {string}
*/
HTMLAnchorElement.prototype.rev;
/**
* @type {string}
*/
HTMLAnchorElement.prototype.shape;
/**
* @type {number}
*/
HTMLAnchorElement.prototype.tabIndex;
/**
* @type {string}
*/
HTMLAnchorElement.prototype.target;
/**
* @type {string}
*/
HTMLAnchorElement.prototype.type;
/**
* @return {undefined}
* @override
*/
HTMLAnchorElement.prototype.blur = function() {};
/**
* @return {undefined}
* @override
*/
HTMLAnchorElement.prototype.focus = function() {};
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLImageElement() {}
/**
* @type {string}
*/
HTMLImageElement.prototype.align;
/**
* @type {string}
*/
HTMLImageElement.prototype.alt;
/**
* @type {string}
*/
HTMLImageElement.prototype.border;
/**
* @type {number}
*/
HTMLImageElement.prototype.height;
/**
* @type {number}
*/
HTMLImageElement.prototype.hspace;
/**
* @type {boolean}
*/
HTMLImageElement.prototype.isMap;
/**
* @type {string}
*/
HTMLImageElement.prototype.longDesc;
/**
* @type {string}
*/
HTMLImageElement.prototype.lowSrc;
/**
* @type {string}
*/
HTMLImageElement.prototype.name;
/**
* @type {string}
* @implicitCast
*/
HTMLImageElement.prototype.src;
/**
* @type {string}
*/
HTMLImageElement.prototype.useMap;
/**
* @type {number}
*/
HTMLImageElement.prototype.vspace;
/**
* @type {number}
*/
HTMLImageElement.prototype.width;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLObjectElement() {}
/**
* @type {string}
*/
HTMLObjectElement.prototype.align;
/**
* @type {string}
*/
HTMLObjectElement.prototype.archive;
/**
* @type {string}
*/
HTMLObjectElement.prototype.border;
/**
* @type {string}
*/
HTMLObjectElement.prototype.code;
/**
* @type {string}
*/
HTMLObjectElement.prototype.codeBase;
/**
* @type {string}
*/
HTMLObjectElement.prototype.codeType;
/**
* @type {Document}
*/
HTMLObjectElement.prototype.contentDocument;
/**
* @type {string}
*/
HTMLObjectElement.prototype.data;
/**
* @type {boolean}
*/
HTMLObjectElement.prototype.declare;
/**
* @type {HTMLFormElement}
*/
HTMLObjectElement.prototype.form;
/**
* @type {string}
*/
HTMLObjectElement.prototype.height;
/**
* @type {number}
*/
HTMLObjectElement.prototype.hspace;
/**
* @type {string}
*/
HTMLObjectElement.prototype.name;
/**
* @type {string}
*/
HTMLObjectElement.prototype.standby;
/**
* @type {number}
*/
HTMLObjectElement.prototype.tabIndex;
/**
* @type {string}
*/
HTMLObjectElement.prototype.type;
/**
* @type {string}
*/
HTMLObjectElement.prototype.useMap;
/**
* @type {number}
*/
HTMLObjectElement.prototype.vspace;
/**
* @type {string}
*/
HTMLObjectElement.prototype.width;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLParamElement() {}
/**
* @type {string}
*/
HTMLParamElement.prototype.name;
/**
* @type {string}
*/
HTMLParamElement.prototype.type;
/**
* @type {string}
*/
HTMLParamElement.prototype.value;
/**
* @type {string}
*/
HTMLParamElement.prototype.valueType;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLAppletElement() {}
/**
* @type {string}
*/
HTMLAppletElement.prototype.align;
/**
* @type {string}
*/
HTMLAppletElement.prototype.alt;
/**
* @type {string}
*/
HTMLAppletElement.prototype.archive;
/**
* @type {string}
*/
HTMLAppletElement.prototype.code;
/**
* @type {string}
*/
HTMLAppletElement.prototype.codeBase;
/**
* @type {string}
*/
HTMLAppletElement.prototype.height;
/**
* @type {number}
*/
HTMLAppletElement.prototype.hspace;
/**
* @type {string}
*/
HTMLAppletElement.prototype.name;
/**
* @type {string}
*/
HTMLAppletElement.prototype.object;
/**
* @type {number}
*/
HTMLAppletElement.prototype.vspace;
/**
* @type {string}
*/
HTMLAppletElement.prototype.width;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLMapElement() {}
/**
* @type {HTMLCollection}
*/
HTMLMapElement.prototype.areas;
/**
* @type {string}
*/
HTMLMapElement.prototype.name;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLAreaElement() {}
/**
* @type {string}
*/
HTMLAreaElement.prototype.accessKey;
/**
* @type {string}
*/
HTMLAreaElement.prototype.alt;
/**
* @type {string}
*/
HTMLAreaElement.prototype.coords;
/**
* @type {string}
*/
HTMLAreaElement.prototype.href;
/**
* @type {boolean}
*/
HTMLAreaElement.prototype.noHref;
/**
* @type {string}
*/
HTMLAreaElement.prototype.shape;
/**
* @type {number}
*/
HTMLAreaElement.prototype.tabIndex;
/**
* @type {string}
*/
HTMLAreaElement.prototype.target;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLScriptElement() {}
/**
* @type {string}
*/
HTMLScriptElement.prototype.charset;
/**
* @type {boolean}
*/
HTMLScriptElement.prototype.defer;
/**
* @type {string}
*/
HTMLScriptElement.prototype.event;
/**
* @type {string}
*/
HTMLScriptElement.prototype.htmlFor;
/**
* @type {string}
*/
HTMLScriptElement.prototype.src;
/**
* @type {string}
*/
HTMLScriptElement.prototype.text;
/**
* @type {string}
*/
HTMLScriptElement.prototype.type;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLTableElement() {}
/**
* @type {string}
*/
HTMLTableElement.prototype.align;
/**
* @type {string}
*/
HTMLTableElement.prototype.bgColor;
/**
* @type {string}
*/
HTMLTableElement.prototype.border;
/**
* @type {HTMLTableCaptionElement}
*/
HTMLTableElement.prototype.caption;
/**
* @type {string}
*/
HTMLTableElement.prototype.cellPadding;
/**
* @type {string}
*/
HTMLTableElement.prototype.cellSpacing;
/**
* @type {string}
*/
HTMLTableElement.prototype.frame;
/**
* @type {HTMLCollection}
*/
HTMLTableElement.prototype.rows;
/**
* @type {string}
*/
HTMLTableElement.prototype.rules;
/**
* @type {string}
*/
HTMLTableElement.prototype.summary;
/**
* @type {HTMLCollection}
*/
HTMLTableElement.prototype.tBodies;
/**
* @type {HTMLTableSectionElement}
*/
HTMLTableElement.prototype.tFoot;
/**
* @type {HTMLTableSectionElement}
*/
HTMLTableElement.prototype.tHead;
/**
* @type {string}
*/
HTMLTableElement.prototype.width;
/**
* @return {HTMLElement}
*/
HTMLTableElement.prototype.createCaption = function() {};
/**
* @return {HTMLElement}
*/
HTMLTableElement.prototype.createTFoot = function() {};
/**
* @return {HTMLElement}
*/
HTMLTableElement.prototype.createTHead = function() {};
/**
* @return {undefined}
*/
HTMLTableElement.prototype.deleteCaption = function() {};
/**
* @param {number} index
* @return {HTMLElement}
*/
HTMLTableElement.prototype.deleteRow = function(index) {};
/**
* @return {undefined}
*/
HTMLTableElement.prototype.deleteTFoot = function() {};
/**
* @return {undefined}
*/
HTMLTableElement.prototype.deleteTHead = function() {};
/**
* @param {number} index
* @return {HTMLElement}
*/
HTMLTableElement.prototype.insertRow = function(index) {};
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLTableCaptionElement() {}
/**
* @type {string}
*/
HTMLTableCaptionElement.prototype.align;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLTableColElement() {}
/**
* @type {string}
*/
HTMLTableColElement.prototype.align;
/**
* @type {string}
*/
HTMLTableColElement.prototype.ch;
/**
* @type {string}
*/
HTMLTableColElement.prototype.chOff;
/**
* @type {number}
*/
HTMLTableColElement.prototype.span;
/**
* @type {string}
*/
HTMLTableColElement.prototype.vAlign;
/**
* @type {string}
*/
HTMLTableColElement.prototype.width;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLTableSectionElement() {}
/**
* @type {string}
*/
HTMLTableSectionElement.prototype.align;
/**
* @type {string}
*/
HTMLTableSectionElement.prototype.ch;
/**
* @type {string}
*/
HTMLTableSectionElement.prototype.chOff;
/**
* @type {HTMLCollection}
*/
HTMLTableSectionElement.prototype.rows;
/**
* @type {string}
*/
HTMLTableSectionElement.prototype.vAlign;
/**
* @param {number} index
* @return {HTMLElement}
*/
HTMLTableSectionElement.prototype.deleteRow = function(index) {};
/**
* @param {number} index
* @return {HTMLElement}
*/
HTMLTableSectionElement.prototype.insertRow = function(index) {};
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLTableRowElement() {}
/**
* @type {string}
*/
HTMLTableRowElement.prototype.align;
/**
* @type {string}
*/
HTMLTableRowElement.prototype.bgColor;
/**
* @type {HTMLCollection}
*/
HTMLTableRowElement.prototype.cells;
/**
* @type {string}
*/
HTMLTableRowElement.prototype.ch;
/**
* @type {string}
*/
HTMLTableRowElement.prototype.chOff;
/**
* @type {number}
*/
HTMLTableRowElement.prototype.rowIndex;
/**
* @type {number}
*/
HTMLTableRowElement.prototype.sectionRowIndex;
/**
* @type {string}
*/
HTMLTableRowElement.prototype.vAlign;
/**
* @param {number} index
* @return {undefined}
*/
HTMLTableRowElement.prototype.deleteCell = function(index) {};
/**
* @param {number} index
* @return {HTMLElement}
*/
HTMLTableRowElement.prototype.insertCell = function(index) {};
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLTableCellElement() {}
/**
* @type {string}
*/
HTMLTableCellElement.prototype.abbr;
/**
* @type {string}
*/
HTMLTableCellElement.prototype.align;
/**
* @type {string}
*/
HTMLTableCellElement.prototype.axis;
/**
* @type {string}
*/
HTMLTableCellElement.prototype.bgColor;
/**
* @type {number}
*/
HTMLTableCellElement.prototype.cellIndex;
/**
* @type {string}
*/
HTMLTableCellElement.prototype.ch;
/**
* @type {string}
*/
HTMLTableCellElement.prototype.chOff;
/**
* @type {number}
*/
HTMLTableCellElement.prototype.colSpan;
/**
* @type {string}
*/
HTMLTableCellElement.prototype.headers;
/**
* @type {string}
*/
HTMLTableCellElement.prototype.height;
/**
* @type {boolean}
*/
HTMLTableCellElement.prototype.noWrap;
/**
* @type {number}
*/
HTMLTableCellElement.prototype.rowSpan;
/**
* @type {string}
*/
HTMLTableCellElement.prototype.scope;
/**
* @type {string}
*/
HTMLTableCellElement.prototype.vAlign;
/**
* @type {string}
*/
HTMLTableCellElement.prototype.width;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLFrameSetElement() {}
/**
* @type {string}
*/
HTMLFrameSetElement.prototype.cols;
/**
* @type {string}
*/
HTMLFrameSetElement.prototype.rows;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLFrameElement() {}
/**
* @type {Document}
*/
HTMLFrameElement.prototype.contentDocument;
/**
* @type {string}
*/
HTMLFrameElement.prototype.frameBorder;
/**
* @type {string}
*/
HTMLFrameElement.prototype.longDesc;
/**
* @type {string}
*/
HTMLFrameElement.prototype.marginHeight;
/**
* @type {string}
*/
HTMLFrameElement.prototype.marginWidth;
/**
* @type {string}
*/
HTMLFrameElement.prototype.name;
/**
* @type {boolean}
*/
HTMLFrameElement.prototype.noResize;
/**
* @type {string}
*/
HTMLFrameElement.prototype.scrolling;
/**
* @type {string}
*/
HTMLFrameElement.prototype.src;
/**
* @constructor
* @extends {HTMLElement}
*/
function HTMLIFrameElement() {}
/**
* @type {string}
*/
HTMLIFrameElement.prototype.align;
/**
* @type {Document}
*/
HTMLIFrameElement.prototype.contentDocument;
/**
* @type {string}
*/
HTMLIFrameElement.prototype.frameBorder;
/**
* @type {string}
*/
HTMLIFrameElement.prototype.height;
/**
* @type {string}
*/
HTMLIFrameElement.prototype.longDesc;
/**
* @type {string}
*/
HTMLIFrameElement.prototype.marginHeight;
/**
* @type {string}
*/
HTMLIFrameElement.prototype.marginWidth;
/**
* @type {string}
*/
HTMLIFrameElement.prototype.name;
/**
* @type {string}
*/
HTMLIFrameElement.prototype.scrolling;
/**
* @type {string}
*/
HTMLIFrameElement.prototype.src;
/**
* @type {string}
*/
HTMLIFrameElement.prototype.width;
/**
* @type {number}
*/
DOMException.INVALID_STATE_ERR = 11;
/**
* @type {number}
*/
DOMException.SYNTAX_ERR = 12;
/**
* @type {number}
*/
DOMException.INVALID_MODIFICATION_ERR = 13;
/**
* @type {number}
*/
DOMException.NAMESPACE_ERR = 14;
/**
* @type {number}
*/
DOMException.INVALID_ACCESS_ERR = 15;