class HTMLElement

# class HTMLElement | All HTML element interfaces derive from this class. More...
Full name | `DOM::HTMLElement`
Definition | `#include <html_element.h>`
Inherits | DOM::Element [public ]
Inherited by | HTMLAnchorElement, HTMLAppletElement, HTMLAreaElement, HTMLBRElement, HTMLBaseElement, HTMLBaseFontElement, HTMLBlockquoteElement, HTMLBodyElement, HTMLButtonElement, HTMLDListElement, HTMLDirectoryElement, HTMLDivElement, HTMLFieldSetElement, HTMLFontElement, HTMLFormElement, HTMLFrameElement, HTMLFrameSetElement, HTMLHRElement, HTMLHeadElement, HTMLHeadingElement, HTMLHtmlElement, HTMLIFrameElement, HTMLImageElement, HTMLInputElement, HTMLIsIndexElement, HTMLLIElement, HTMLLabelElement, HTMLLegendElement, HTMLLinkElement, HTMLMapElement, HTMLMenuElement, HTMLMetaElement, HTMLModElement, HTMLOListElement, HTMLObjectElement, HTMLOptGroupElement, HTMLOptionElement, HTMLParagraphElement, HTMLParamElement, HTMLPreElement, HTMLQuoteElement, HTMLScriptElement, HTMLSelectElement, HTMLStyleElement, HTMLTableCaptionElement, HTMLTableCellElement, HTMLTableColElement, HTMLTableElement, HTMLTableRowElement, HTMLTableSectionElement, HTMLTextAreaElement, HTMLTitleElement, HTMLUListElement
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- HTMLElement ()
- HTMLElement (const HTMLElement &other)
- HTMLElement (const Node &other)
- HTMLElement & operator = (const HTMLElement &other)
- HTMLElement & operator = (const Node &other)
- ~HTMLElement ()
- DOMString id () const
- void setId ( const DOMString & )
- DOMString title () const
- void setTitle ( const DOMString & )
- DOMString lang () const
- void setLang ( const DOMString & )
- DOMString dir () const
- void setDir ( const DOMString & )
- DOMString className () const
- void setClassName ( const DOMString & )
- DOMString innerHTML () const
- void setInnerHTML ( const DOMString &html )
- DOMString innerText () const
- void setInnerText ( const DOMString &text )
- HTMLCollection children () const
- HTMLCollection all () const
- void removeCSSProperty ( const DOMString& property )
- void addCSSProperty ( const DOMString &property, const DOMString &value )
- void assignOther ( const Node &other, int elementId )

#### Protected Methods

- HTMLElement (HTMLElementImpl *impl)

## Detailed Description

All HTML element interfaces derive from this class. Elements that only expose the HTML core attributes are represented by the base `HTMLElement` interface. These elements are as follows:

HEAD

special: SUB, SUP, SPAN, BDO

font: TT, I, B, U, S, STRIKE, BIG, SMALL

phrase: EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ACRONYM, ABBR

list: DD, DT

NOFRAMES, NOSCRIPT

ADDRESS, CENTER

Note. The `style` attribute for this interface is reserved for future usage.

HTMLElement () | ### HTMLElement

HTMLElement (const HTMLElement &other) | ### HTMLElement

HTMLElement (const Node &other) | ### HTMLElement

HTMLElement (HTMLElementImpl *impl) | ### HTMLElement

[protected]

HTMLElement & operator = (const HTMLElement &other) | ### operator =

Reimplemented from Element.

HTMLElement & operator = (const Node &other) | ### operator =

Reimplemented from Element.

~HTMLElement () | ### ~HTMLElement

DOMString id () | ### id

[const]

The element's identifier. See the id attribute definition in HTML 4.0.

void setId ( const DOMString & ) | ### setId

see id

DOMString title () | ### title

[const]

The element's advisory title. See the title attribute definition in HTML 4.0.

void setTitle ( const DOMString & ) | ### setTitle

see title

DOMString lang () | ### lang

[const]

Language code defined in RFC 1766. See the lang attribute definition in HTML 4.0.

void setLang ( const DOMString & ) | ### setLang

see lang

DOMString dir () | ### dir

[const]

Specifies the base direction of directionally neutral text and the directionality of tables. See the dir attribute definition in HTML 4.0.

void setDir ( const DOMString & ) | ### setDir

see dir

DOMString className () | ### className

[const]

The class attribute of the element. This attribute has been renamed due to conflicts with the "class" keyword exposed by many languages. See the class attribute definition in HTML 4.0.

void setClassName ( const DOMString & ) | ### setClassName

see className

DOMString innerHTML () | ### innerHTML

[const]

The HTML code contained in this element. This function is not part of the DOM specifications as defined by the w3c.

void setInnerHTML ( const DOMString &html ) | ### setInnerHTML

Set the HTML content of this node.

Throws: DOMException, NO_MODIFICATION_ALLOWED_ERR:, Raised, if, there, is, the, element, does, not, allow, children.

DOMString innerText () | ### innerText

[const]

The text contained in this element. This function is not part of the DOM specifications as defined by the w3c.

void setInnerText ( const DOMString &text ) | ### setInnerText

Set the text content of this node.

Throws: DOMException, NO_MODIFICATION_ALLOWED_ERR:, Raised, if, there, is, the, element, does, not, allow, children.

HTMLCollection children () | ### children

[const]

Retrieves a collection of nodes that are direct descendants of this node. IE-specific extension.

HTMLCollection all () | ### all

[const]

Retrieves a collection of all nodes that descend from this node. IE-specific extension.

void removeCSSProperty ( const DOMString& property ) | ### removeCSSProperty

void addCSSProperty ( const DOMString &property, const DOMString &value ) | ### addCSSProperty

void assignOther ( const Node &other, int elementId ) | ### assignOther

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:37:43 2003, using kdoc 2.0a54.