* language * SGML HTML XML * comment * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/ * comment * Basic Types DOMString DOMString valuetype DOMString sequence; DOMTimeStamp DOMTimeStamp typedef unsigned long long DOMTimeStamp; DOMUserData DOMUserData typedef any DOMUserData; DOMObject DOMObject typedef Object DOMObject; * comment * Fundamental Interfaces: Core Module DOMException DOMException exception DOMException { unsigned short code; }; // ExceptionCode const unsigned short INDEX_SIZE_ERR = 1; const unsigned short DOMSTRING_SIZE_ERR = 2; const unsigned short HIERARCHY_REQUEST_ERR = 3; const unsigned short WRONG_DOCUMENT_ERR = 4; const unsigned short INVALID_CHARACTER_ERR = 5; const unsigned short NO_DATA_ALLOWED_ERR = 6; const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7; const unsigned short NOT_FOUND_ERR = 8; const unsigned short NOT_SUPPORTED_ERR = 9; const unsigned short INUSE_ATTRIBUTE_ERR = 10; const unsigned short INVALID_STATE_ERR = 11; // DOM Level 2 const unsigned short SYNTAX_ERR = 12; // DOM Level 2 const unsigned short INVALID_MODIFICATION_ERR = 13; // DOM Level 2 const unsigned short NAMESPACE_ERR = 14; // DOM Level 2 const unsigned short INVALID_ACCESS_ERR = 15; // DOM Level 2 const unsigned short VALIDATION_ERR = 16; // DOM Level 3 const unsigned short TYPE_MISMATCH_ERR = 17; // DOM Level 3 DOMStringList DOMStringList // Introduced in DOM Level 3: interface DOMStringList { DOMString item(in unsigned long index); readonly attribute unsigned long length; boolean contains(in DOMString str); }; NameList NameList // Introduced in DOM Level 3: interface NameList { DOMString getName(in unsigned long index); DOMString getNamespaceURI(in unsigned long index); readonly attribute unsigned long length; boolean contains(in DOMString str); boolean containsNS(in DOMString namespaceURI, in DOMString name); }; DOMImplementationList DOMImplementationList // Introduced in DOM Level 3: interface DOMImplementationList { DOMImplementation item(in unsigned long index); readonly attribute unsigned long length; }; DOMImplementationSource DOMImplementationSource // Introduced in DOM Level 3: interface DOMImplementationSource { DOMImplementation getDOMImplementation(in DOMString features); DOMImplementationList getDOMImplementationList(in DOMString features); }; DOMImplementation DOMImplementation interface DOMImplementation { boolean hasFeature(in DOMString feature, in DOMString version); DocumentType createDocumentType(in DOMString qualifiedName, // Introduced in DOM Level 2 in DOMString publicId, in DOMString systemId) raises(DOMException); Document createDocument(in DOMString namespaceURI, // Introduced in DOM Level 2 in DOMString qualifiedName, in DocumentType doctype) raises(DOMException); DOMObject getFeature(in DOMString feature, // Introduced in DOM Level 3 in DOMString version); }; DocumentFragment DocumentFragment interface DocumentFragment : Node { }; Document Document interface Document : Node { // Modified in DOM Level 3: readonly attribute DocumentType doctype; readonly attribute DOMImplementation implementation; readonly attribute Element documentElement; Element createElement(in DOMString tagName) raises(DOMException); DocumentFragment createDocumentFragment(); Text createTextNode(in DOMString data); Comment createComment(in DOMString data); CDATASection createCDATASection(in DOMString data) raises(DOMException); ProcessingInstruction createProcessingInstruction(in DOMString target, in DOMString data) raises(DOMException); Attr createAttribute(in DOMString name) raises(DOMException); EntityReference createEntityReference(in DOMString name) raises(DOMException); NodeList getElementsByTagName(in DOMString tagname); Node importNode(in Node importedNode, // Introduced in DOM Level 2 in boolean deep) raises(DOMException); Element createElementNS(in DOMString namespaceURI, // Introduced in DOM Level 2 in DOMString qualifiedName) raises(DOMException); Attr createAttributeNS(in DOMString namespaceURI, // Introduced in DOM Level 2 in DOMString qualifiedName) raises(DOMException); NodeList getElementsByTagNameNS(in DOMString namespaceURI, // Introduced in DOM Level 2 in DOMString localName); Element getElementById(in DOMString elementId); // Introduced in DOM Level 2 readonly attribute DOMString inputEncoding; // Introduced in DOM Level 3 readonly attribute DOMString xmlEncoding; // Introduced in DOM Level 3 attribute boolean xmlStandalone; // Introduced in DOM Level 3 // raises(DOMException) on setting . attribute DOMString xmlVersion; // Introduced in DOM Level 3 // raises(DOMException) on setting . attribute boolean strictErrorChecking; // Introduced in DOM Level 3 attribute DOMString documentURI; // Introduced in DOM Level 3 Node adoptNode(in Node source) // Introduced in DOM Level 3 raises(DOMException); readonly attribute DOMConfiguration domConfig; // Introduced in DOM Level 3 void normalizeDocument(); // Introduced in DOM Level 3 Node renameNode(in Node n, // Introduced in DOM Level 3 in DOMString namespaceURI, in DOMString qualifiedName) raises(DOMException); }; Node Node interface Node { const unsigned short ELEMENT_NODE = 1, // NodeType ATTRIBUTE_NODE = 2, TEXT_NODE = 3, CDATA_SECTION_NODE = 4, ENTITY_REFERENCE_NODE = 5, ENTITY_NODE = 6, PROCESSING_INSTRUCTION_NODE = 7, COMMENT_NODE = 8, DOCUMENT_NODE = 9, DOCUMENT_TYPE_NODE = 10, DOCUMENT_FRAGMENT_NODE = 11, NOTATION_NODE = 12; . readonly attribute DOMString nodeName; attribute DOMString nodeValue; // raises(DOMException) on setting // raises(DOMException) on retrieval . readonly attribute unsigned short nodeType; readonly attribute Node parentNode; readonly attribute NodeList childNodes; readonly attribute Node firstChild; readonly attribute Node lastChild; readonly attribute Node previousSibling; readonly attribute Node nextSibling; readonly attribute NamedNodeMap attributes; readonly attribute Document ownerDocument; // Modified in DOM Level 2 Node insertBefore(in Node newChild, // Modified in DOM Level 3 in Node refChild) raises(DOMException); Node replaceChild(in Node newChild, // Modified in DOM Level 3 in Node oldChild) raises(DOMException); Node removeChild(in Node oldChild) // Modified in DOM Level 3 raises(DOMException); Node appendChild(in Node newChild) // Modified in DOM Level 3 raises(DOMException); boolean hasChildNodes(); Node cloneNode(in boolean deep); void normalize(); // Modified in DOM Level 3 boolean isSupported(in DOMString feature, // Introduced in DOM Level 2 in DOMString version); readonly attribute DOMString namespaceURI; // Introduced in DOM Level 2 attribute DOMString prefix; // Introduced in DOM Level 2 // raises(DOMException) on setting . readonly attribute DOMString localName; // Introduced in DOM Level 2 boolean hasAttributes(); // Introduced in DOM Level 2: readonly attribute DOMString baseURI; // Introduced in DOM Level 3 . // DocumentPosition const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; . unsigned short compareDocumentPosition(in Node other) // Introduced in DOM Level 3 raises(DOMException); attribute DOMString textContent; // Introduced in DOM Level 3 // raises(DOMException) on setting // raises(DOMException) on retrieval . boolean isSameNode(in Node other); // Introduced in DOM Level 3 DOMString lookupPrefix(in DOMString namespaceURI); // Introduced in DOM Level 3 boolean isDefaultNamespace(in DOMString namespaceURI); // Introduced in DOM Level 3 DOMString lookupNamespaceURI(in DOMString prefix); // Introduced in DOM Level 3 boolean isEqualNode(in Node arg); // Introduced in DOM Level 3 DOMObject getFeature(in DOMString feature, // Introduced in DOM Level 3 in DOMString version); DOMUserData setUserData(in DOMString key, // Introduced in DOM Level 3 in DOMUserData data, in UserDataHandler handler); DOMUserData getUserData(in DOMString key); // Introduced in DOM Level 3 }; . NodeList NodeList interface NodeList { Node item(in unsigned long index); readonly attribute unsigned long length; }; NamedNodeMap NamedNodeMap interface NamedNodeMap { Node getNamedItem(in DOMString name); Node setNamedItem(in Node arg) raises(DOMException); Node removeNamedItem(in DOMString name) raises(DOMException); Node item(in unsigned long index); readonly attribute unsigned long length; Node getNamedItemNS(in DOMString namespaceURI, // Introduced in DOM Level 2 in DOMString localName) raises(DOMException); Node setNamedItemNS(in Node arg) // Introduced in DOM Level 2 raises(DOMException); Node removeNamedItemNS(in DOMString namespaceURI, // Introduced in DOM Level 2 in DOMString localName) raises(DOMException); }; CharacterData CharacterData interface CharacterData : Node { attribute DOMString data; // raises(DOMException) on setting // raises(DOMException) on retrieval . readonly attribute unsigned long length; DOMString substringData(in unsigned long offset, in unsigned long count) raises(DOMException); void appendData(in DOMString arg) raises(DOMException); void insertData(in unsigned long offset, in DOMString arg) raises(DOMException); void deleteData(in unsigned long offset, in unsigned long count) raises(DOMException); void replaceData(in unsigned long offset, in unsigned long count, in DOMString arg) raises(DOMException); }; Attr Attr interface Attr : Node { readonly attribute DOMString name; readonly attribute boolean specified; attribute DOMString value; // raises(DOMException) on setting . readonly attribute Element ownerElement; // Introduced in DOM Level 2 readonly attribute TypeInfo schemaTypeInfo; // Introduced in DOM Level 3 readonly attribute boolean isId; // Introduced in DOM Level 3 }; Element Element interface Element : Node { readonly attribute DOMString tagName; DOMString getAttribute(in DOMString name); void setAttribute(in DOMString name, in DOMString value) raises(DOMException); void removeAttribute(in DOMString name) raises(DOMException); Attr getAttributeNode(in DOMString name); Attr setAttributeNode(in Attr newAttr) raises(DOMException); Attr removeAttributeNode(in Attr oldAttr) raises(DOMException); NodeList getElementsByTagName(in DOMString name); DOMString getAttributeNS(in DOMString namespaceURI, // Introduced in DOM Level 2 in DOMString localName) raises(DOMException); void setAttributeNS(in DOMString namespaceURI, // Introduced in DOM Level 2 in DOMString qualifiedName, in DOMString value) raises(DOMException); void removeAttributeNS(in DOMString namespaceURI, // Introduced in DOM Level 2 in DOMString localName) raises(DOMException); Attr getAttributeNodeNS(in DOMString namespaceURI, // Introduced in DOM Level 2 in DOMString localName) raises(DOMException); Attr setAttributeNodeNS(in Attr newAttr) // Introduced in DOM Level 2 raises(DOMException); NodeList getElementsByTagNameNS(in DOMString namespaceURI, // Introduced in DOM Level 2 in DOMString localName) raises(DOMException); boolean hasAttribute(in DOMString name); // Introduced in DOM Level 2 boolean hasAttributeNS(in DOMString namespaceURI, // Introduced in DOM Level 2 in DOMString localName) raises(DOMException); readonly attribute TypeInfo schemaTypeInfo; // Introduced in DOM Level 3 void setIdAttribute(in DOMString name, // Introduced in DOM Level 3 in boolean isId) raises(DOMException); void setIdAttributeNS(in DOMString namespaceURI, // Introduced in DOM Level 3 in DOMString localName, in boolean isId) raises(DOMException); void setIdAttributeNode(in Attr idAttr, // Introduced in DOM Level 3 in boolean isId) raises(DOMException); }; Text Text interface Text : CharacterData { Text splitText(in unsigned long offset) raises(DOMException); readonly attribute boolean isElementContentWhitespace; // Introduced in DOM Level 3 readonly attribute DOMString wholeText; // Introduced in DOM Level 3 Text replaceWholeText(in DOMString content) // Introduced in DOM Level 3 raises(DOMException); }; Comment Comment interface Comment : CharacterData { }; TypeInfo TypeInfo // Introduced in DOM Level 3: interface TypeInfo { readonly attribute DOMString typeName; readonly attribute DOMString typeNamespace; . // DerivationMethods const unsigned long DERIVATION_RESTRICTION = 0x00000001; const unsigned long DERIVATION_EXTENSION = 0x00000002; const unsigned long DERIVATION_UNION = 0x00000004; const unsigned long DERIVATION_LIST = 0x00000008; . boolean isDerivedFrom(in DOMString typeNamespaceArg, in DOMString typeNameArg, in unsigned long derivationMethod); }; UserDataHandler UserDataHandler // Introduced in DOM Level 3: interface UserDataHandler { . // OperationType const unsigned short NODE_CLONED = 1; const unsigned short NODE_IMPORTED = 2; const unsigned short NODE_DELETED = 3; const unsigned short NODE_RENAMED = 4; const unsigned short NODE_ADOPTED = 5; . void handle(in unsigned short operation, in DOMString key, in DOMUserData data, in Node src, in Node dst); }; DOMError DOMError // Introduced in DOM Level 3: interface DOMError { . // ErrorSeverity const unsigned short SEVERITY_WARNING = 1; const unsigned short SEVERITY_ERROR = 2; const unsigned short SEVERITY_FATAL_ERROR = 3; . readonly attribute unsigned short severity; readonly attribute DOMString message; readonly attribute DOMString type; readonly attribute DOMObject relatedException; readonly attribute DOMObject relatedData; readonly attribute DOMLocator location; }; DOMErrorHandler DOMErrorHandler // Introduced in DOM Level 3: interface DOMErrorHandler { boolean handleError(in DOMError error); }; DOMLocator DOMLocator // Introduced in DOM Level 3: interface DOMLocator { readonly attribute long lineNumber; readonly attribute long columnNumber; readonly attribute long byteOffset; readonly attribute long utf16Offset; readonly attribute Node relatedNode; readonly attribute DOMString uri; }; DOMConfiguration DOMConfiguration // Introduced in DOM Level 3: interface DOMConfiguration { void setParameter(in DOMString name, in DOMUserData value) raises(DOMException); DOMUserData getParameter(in DOMString name) raises(DOMException); boolean canSetParameter(in DOMString name, in DOMUserData value); readonly attribute DOMStringList parameterNames; }; * comment * Extended Interfaces: XML Module CDATASection CDATASection interface CDATASection : Text { }; DocumentType DocumentType interface DocumentType : Node { readonly attribute DOMString name; readonly attribute NamedNodeMap entities; readonly attribute NamedNodeMap notations; readonly attribute DOMString publicId; // Introduced in DOM Level 2 readonly attribute DOMString systemId; // Introduced in DOM Level 2 readonly attribute DOMString internalSubset; // Introduced in DOM Level 2 }; Notation Notation interface Notation : Node { readonly attribute DOMString publicId; readonly attribute DOMString systemId; }; Entity Entity interface Entity : Node { readonly attribute DOMString publicId; readonly attribute DOMString systemId; readonly attribute DOMString notationName; readonly attribute DOMString inputEncoding; // Introduced in DOM Level 3 readonly attribute DOMString xmlEncoding; // Introduced in DOM Level 3 readonly attribute DOMString xmlVersion; // Introduced in DOM Level 3 }; EntityReference EntityReference interface EntityReference : Node { }; ProcessingInstruction ProcessingInstruction interface ProcessingInstruction : Node { readonly attribute DOMString target; attribute DOMString data; // raises(DOMException) on setting }; * comment * http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/ * comment * Document Object Model (DOM) Level 2: HTML Specification * comment * Miscellaneous Object Definitions HTMLCollection HTMLCollection interface HTMLCollection { readonly attribute unsigned long length; Node item(in unsigned long index); Node namedItem(in DOMString name); }; HTMLOptionsCollection HTMLOptionsCollection // Introduced in DOM Level 2: interface HTMLOptionsCollection { attribute unsigned long length; // raises(DOMException) on setting . Node item(in unsigned long index); Node namedItem(in DOMString name); }; * comment * Objects related to HTML documents HTMLDocument HTMLDocument interface HTMLDocument : Document { attribute DOMString title; readonly attribute DOMString referrer; readonly attribute DOMString domain; readonly attribute DOMString URL; attribute HTMLElement body; readonly attribute HTMLCollection images; readonly attribute HTMLCollection applets; readonly attribute HTMLCollection links; readonly attribute HTMLCollection forms; readonly attribute HTMLCollection anchors; attribute DOMString cookie; // raises(DOMException) on setting . void open(); void close(); void write(in DOMString text); void writeln(in DOMString text); NodeList getElementsByName(in DOMString elementName); }; * comment * HTML Elements HTMLElement HTMLElement For tags * special: SUB, SUP, SPAN, BDO * font: TT, I, B, U (Deprecated), S (Deprecated), STRIKE (Deprecated), BIG, SMALL * phrase: EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ACRONYM, ABBR * list: DD, DT * NOFRAMES, NOSCRIPT * ADDRESS, CENTER (Deprecated) . interface HTMLElement : Element { attribute DOMString id; attribute DOMString title; attribute DOMString lang; attribute DOMString dir; attribute DOMString className; }; tagName, nodeName attributes will be uppercase HTML tag names if the document is a HTML 4.01 document; if XHTML 1.0, the tag names will be as written in the document - they will be lowercase if conforming to the XHTML 1.0 DTDs. eg. element.tagName == "BODY" // for HTML 4.01 element.tagName == "body" // for XHTML 1.0 HTMLHtmlElement HTMLHtmlElement For tag: HTML . interface HTMLHtmlElement : HTMLElement { attribute DOMString version; }; HTMLHeadElement HTMLHeadElement For tag: HEAD . interface HTMLHeadElement : HTMLElement { attribute DOMString profile; }; HTMLLinkElement HTMLLinkElement For tag: LINK . interface HTMLLinkElement : HTMLElement { attribute boolean disabled; attribute DOMString charset; attribute DOMString href; attribute DOMString hreflang; attribute DOMString media; attribute DOMString rel; attribute DOMString rev; attribute DOMString target; attribute DOMString type; }; HTMLTitleElement HTMLTitleElement For tag: TITLE . interface HTMLTitleElement : HTMLElement { attribute DOMString text; }; HTMLMetaElement HTMLMetaElement For tag: META . interface HTMLMetaElement : HTMLElement { attribute DOMString content; attribute DOMString httpEquiv; attribute DOMString name; attribute DOMString scheme; }; HTMLBaseElement HTMLBaseElement For tag: BASE . interface HTMLBaseElement : HTMLElement { attribute DOMString href; attribute DOMString target; }; HTMLIsIndexElement HTMLIsIndexElement For tag: ISINDEX (Deprecated tag) . interface HTMLIsIndexElement : HTMLElement { readonly attribute HTMLFormElement form; attribute DOMString prompt; }; HTMLStyleElement HTMLStyleElement For tag: STYLE . interface HTMLStyleElement : HTMLElement { attribute boolean disabled; attribute DOMString media; attribute DOMString type; }; HTMLBodyElement HTMLBodyElement For tag: BODY . interface HTMLBodyElement : HTMLElement { attribute DOMString aLink; attribute DOMString background; attribute DOMString bgColor; attribute DOMString link; attribute DOMString text; attribute DOMString vLink; }; HTMLFormElement HTMLFormElement For tag: FORM . interface HTMLFormElement : HTMLElement { readonly attribute HTMLCollection elements; readonly attribute long length; attribute DOMString name; attribute DOMString acceptCharset; attribute DOMString action; attribute DOMString enctype; attribute DOMString method; attribute DOMString target; void submit(); void reset(); }; HTMLSelectElement HTMLSelectElement For tag: SELECT . interface HTMLSelectElement : HTMLElement { readonly attribute DOMString type; attribute long selectedIndex; attribute DOMString value; // Modified in DOM Level 2: attribute unsigned long length; // raises(DOMException) on setting . readonly attribute HTMLFormElement form; // Modified in DOM Level 2: readonly attribute HTMLOptionsCollection options; attribute boolean disabled; attribute boolean multiple; attribute DOMString name; attribute long size; attribute long tabIndex; void add(in HTMLElement element, in HTMLElement before) raises(DOMException); void remove(in long index); void blur(); void focus(); }; HTMLOptGroupElement HTMLOptGroupElement For tag: OPTGROUP . interface HTMLOptGroupElement : HTMLElement { attribute boolean disabled; attribute DOMString label; }; HTMLOptionElement HTMLOptionElement For tag: OPTION . interface HTMLOptionElement : HTMLElement { readonly attribute HTMLFormElement form; // Modified in DOM Level 2: attribute boolean defaultSelected; readonly attribute DOMString text; // Modified in DOM Level 2: readonly attribute long index; attribute boolean disabled; attribute DOMString label; attribute boolean selected; attribute DOMString value; }; HTMLInputElement HTMLInputElement For tag: INPUT . interface HTMLInputElement : HTMLElement { attribute DOMString defaultValue; attribute boolean defaultChecked; readonly attribute HTMLFormElement form; attribute DOMString accept; attribute DOMString accessKey; attribute DOMString align; attribute DOMString alt; attribute boolean checked; attribute boolean disabled; attribute long maxLength; attribute DOMString name; attribute boolean readOnly; // Modified in DOM Level 2: attribute unsigned long size; attribute DOMString src; attribute long tabIndex; // Modified in DOM Level 2: attribute DOMString type; attribute DOMString useMap; attribute DOMString value; void blur(); void focus(); void select(); void click(); }; HTMLTextAreaElement HTMLTextAreaElement For tag: TEXTAREA . interface HTMLTextAreaElement : HTMLElement { // Modified in DOM Level 2: attribute DOMString defaultValue; readonly attribute HTMLFormElement form; attribute DOMString accessKey; attribute long cols; attribute boolean disabled; attribute DOMString name; attribute boolean readOnly; attribute long rows; attribute long tabIndex; readonly attribute DOMString type; attribute DOMString value; void blur(); void focus(); void select(); }; HTMLButtonElement HTMLButtonElement For tag: BUTTON . interface HTMLButtonElement : HTMLElement { readonly attribute HTMLFormElement form; attribute DOMString accessKey; attribute boolean disabled; attribute DOMString name; attribute long tabIndex; readonly attribute DOMString type; attribute DOMString value; }; HTMLLabelElement HTMLLabelElement For tag: LABEL . interface HTMLLabelElement : HTMLElement { readonly attribute HTMLFormElement form; attribute DOMString accessKey; attribute DOMString htmlFor; }; HTMLFieldSetElement HTMLFieldSetElement For tag: FIELDSET . interface HTMLFieldSetElement : HTMLElement { readonly attribute HTMLFormElement form; }; HTMLLegendElement HTMLLegendElement For tag: LEGEND . interface HTMLLegendElement : HTMLElement { readonly attribute HTMLFormElement form; attribute DOMString accessKey; attribute DOMString align; }; HTMLUListElement HTMLUListElement For tag: UL . interface HTMLUListElement : HTMLElement { attribute boolean compact; attribute DOMString type; }; HTMLOListElement HTMLOListElement For tag: OL . interface HTMLOListElement : HTMLElement { attribute boolean compact; attribute long start; attribute DOMString type; }; HTMLDListElement HTMLDListElement For tag: DL . interface HTMLDListElement : HTMLElement { attribute boolean compact; }; HTMLDirectoryElement HTMLDirectoryElement For tag: DIR (Deprecated tag) . interface HTMLDirectoryElement : HTMLElement { attribute boolean compact; }; HTMLMenuElement HTMLMenuElement For tag: MENU (Deprecated tag) . interface HTMLMenuElement : HTMLElement { attribute boolean compact; }; HTMLLIElement HTMLLIElement For tag: LI . interface HTMLLIElement : HTMLElement { attribute DOMString type; attribute long value; }; HTMLDivElement HTMLDivElement For tag: DIV . interface HTMLDivElement : HTMLElement { attribute DOMString align; }; HTMLParagraphElement HTMLParagraphElement For tag: P . interface HTMLParagraphElement : HTMLElement { attribute DOMString align; }; HTMLHeadingElement HTMLHeadingElement For tags: H1, H2, H3, H4, H5, H6 . interface HTMLHeadingElement : HTMLElement { attribute DOMString align; }; HTMLQuoteElement HTMLQuoteElement For tags: Q, BLOCKQUOTE . interface HTMLQuoteElement : HTMLElement { attribute DOMString cite; }; HTMLPreElement HTMLPreElement For tag: PRE . interface HTMLPreElement : HTMLElement { attribute long width; }; HTMLBRElement HTMLBRElement For tag: BR . interface HTMLBRElement : HTMLElement { attribute DOMString clear; }; HTMLBaseFontElement HTMLBaseFontElement For tag: BASEFONT (Deprecated tag) . interface HTMLBaseFontElement : HTMLElement { attribute DOMString color; attribute DOMString face; // Modified in DOM Level 2: attribute long size; }; HTMLFontElement HTMLFontElement For tag: FONT (Deprecated tag) . interface HTMLFontElement : HTMLElement { attribute DOMString color; attribute DOMString face; attribute DOMString size; }; HTMLHRElement HTMLHRElement For tag: HR . interface HTMLHRElement : HTMLElement { attribute DOMString align; attribute boolean noShade; attribute DOMString size; attribute DOMString width; }; HTMLModElement HTMLModElement For tags: INS, DEL . interface HTMLModElement : HTMLElement { attribute DOMString cite; attribute DOMString dateTime; }; HTMLAnchorElement HTMLAnchorElement For tag: A . interface HTMLAnchorElement : HTMLElement { attribute DOMString accessKey; attribute DOMString charset; attribute DOMString coords; attribute DOMString href; attribute DOMString hreflang; attribute DOMString name; attribute DOMString rel; attribute DOMString rev; attribute DOMString shape; attribute long tabIndex; attribute DOMString target; attribute DOMString type; void blur(); void focus(); }; HTMLImageElement HTMLImageElement For tag: IMG . interface HTMLImageElement : HTMLElement { attribute DOMString name; attribute DOMString align; attribute DOMString alt; attribute DOMString border; // Modified in DOM Level 2: attribute long height; // Modified in DOM Level 2: attribute long hspace; attribute boolean isMap; attribute DOMString longDesc; attribute DOMString src; attribute DOMString useMap; // Modified in DOM Level 2: attribute long vspace; // Modified in DOM Level 2: attribute long width; }; HTMLObjectElement For tag: OBJECT . HTMLObjectElement interface HTMLObjectElement : HTMLElement { readonly attribute HTMLFormElement form; attribute DOMString code; attribute DOMString align; attribute DOMString archive; attribute DOMString border; attribute DOMString codeBase; attribute DOMString codeType; attribute DOMString data; attribute boolean declare; attribute DOMString height; attribute long hspace; attribute DOMString name; attribute DOMString standby; attribute long tabIndex; attribute DOMString type; attribute DOMString useMap; attribute long vspace; attribute DOMString width; readonly attribute Document contentDocument; // Introduced in DOM Level 2 }; HTMLParamElement For tag: PARAM . HTMLParamElement interface HTMLParamElement : HTMLElement { attribute DOMString name; attribute DOMString type; attribute DOMString value; attribute DOMString valueType; }; HTMLAppletElement For tag: APPLET (Deprecated tag) . HTMLAppletElement interface HTMLAppletElement : HTMLElement { attribute DOMString align; attribute DOMString alt; attribute DOMString archive; attribute DOMString code; attribute DOMString codeBase; attribute DOMString height; // Modified in DOM Level 2: attribute long hspace; attribute DOMString name; // Modified in DOM Level 2: attribute DOMString object; // Modified in DOM Level 2: attribute long vspace; attribute DOMString width; }; HTMLMapElement HTMLMapElement For tag: MAP . interface HTMLMapElement : HTMLElement { readonly attribute HTMLCollection areas; attribute DOMString name; }; HTMLAreaElement HTMLAreaElement For tag: AREA . interface HTMLAreaElement : HTMLElement { attribute DOMString accessKey; attribute DOMString alt; attribute DOMString coords; attribute DOMString href; attribute boolean noHref; attribute DOMString shape; attribute long tabIndex; attribute DOMString target; }; HTMLScriptElement HTMLScriptElement For tag: SCRIPT . interface HTMLScriptElement : HTMLElement { attribute DOMString text; attribute DOMString htmlFor; attribute DOMString event; attribute DOMString charset; attribute boolean defer; attribute DOMString src; attribute DOMString type; }; HTMLTableElement HTMLTableElement For tag: TABLE . interface HTMLTableElement : HTMLElement { attribute HTMLTableCaptionElement caption; // Modified in DOM Level 2 // raises(DOMException) on setting . attribute HTMLTableSectionElement tHead; // Modified in DOM Level 2 // raises(DOMException) on setting . attribute HTMLTableSectionElement tFoot; // Modified in DOM Level 2 // raises(DOMException) on setting . readonly attribute HTMLCollection rows; readonly attribute HTMLCollection tBodies; attribute DOMString align; attribute DOMString bgColor; attribute DOMString border; attribute DOMString cellPadding; attribute DOMString cellSpacing; attribute DOMString frame; attribute DOMString rules; attribute DOMString summary; attribute DOMString width; HTMLElement createTHead(); void deleteTHead(); HTMLElement createTFoot(); void deleteTFoot(); HTMLElement createCaption(); void deleteCaption(); HTMLElement insertRow(in long index) // Modified in DOM Level 2 raises(DOMException); void deleteRow(in long index) // Modified in DOM Level 2 raises(DOMException); }; . HTMLTableCaptionElement HTMLTableCaptionElement For tag: CAPTION . interface HTMLTableCaptionElement : HTMLElement { attribute DOMString align; }; HTMLTableColElement HTMLTableColElement For tag: COL . interface HTMLTableColElement : HTMLElement { attribute DOMString align; attribute DOMString ch; attribute DOMString chOff; attribute long span; attribute DOMString vAlign; attribute DOMString width; }; HTMLTableSectionElement For tags: THEAD, TFOOT, TBODY . HTMLTableSectionElement interface HTMLTableSectionElement : HTMLElement { attribute DOMString align; attribute DOMString ch; attribute DOMString chOff; attribute DOMString vAlign; readonly attribute HTMLCollection rows; // Modified in DOM Level 2: HTMLElement insertRow(in long index) raises(DOMException); // Modified in DOM Level 2: void deleteRow(in long index) raises(DOMException); }; HTMLTableRowElement HTMLTableRowElement For tag: TR . interface HTMLTableRowElement : HTMLElement { // Modified in DOM Level 2: readonly attribute long rowIndex; // Modified in DOM Level 2: readonly attribute long sectionRowIndex; // Modified in DOM Level 2: readonly attribute HTMLCollection cells; attribute DOMString align; attribute DOMString bgColor; attribute DOMString ch; attribute DOMString chOff; attribute DOMString vAlign; // Modified in DOM Level 2: HTMLElement insertCell(in long index) raises(DOMException); // Modified in DOM Level 2: void deleteCell(in long index) raises(DOMException); }; HTMLTableCellElement HTMLTableCellElement For tag: TD . interface HTMLTableCellElement : HTMLElement { readonly attribute long cellIndex; attribute DOMString abbr; attribute DOMString align; attribute DOMString axis; attribute DOMString bgColor; attribute DOMString ch; attribute DOMString chOff; attribute long colSpan; attribute DOMString headers; attribute DOMString height; attribute boolean noWrap; attribute long rowSpan; attribute DOMString scope; attribute DOMString vAlign; attribute DOMString width; }; HTMLFrameSetElement HTMLFrameSetElement For tag: FRAMESET . interface HTMLFrameSetElement : HTMLElement { attribute DOMString cols; attribute DOMString rows; }; HTMLFrameElement HTMLFrameElement For tag: FRAME . interface HTMLFrameElement : HTMLElement { attribute DOMString frameBorder; attribute DOMString longDesc; attribute DOMString marginHeight; attribute DOMString marginWidth; attribute DOMString name; attribute boolean noResize; attribute DOMString scrolling; attribute DOMString src; readonly attribute Document contentDocument; // Introduced in DOM Level 2 }; HTMLIFrameElement HTMLIFrameElement For tag: IFRAME . interface HTMLIFrameElement : HTMLElement { attribute DOMString align; attribute DOMString frameBorder; attribute DOMString height; attribute DOMString longDesc; attribute DOMString marginHeight; attribute DOMString marginWidth; attribute DOMString name; attribute DOMString scrolling; attribute DOMString src; attribute DOMString width; readonly attribute Document contentDocument; // Introduced in DOM Level 2 };