KHTML
DOM::HTMLElement Class Reference
All HTML element interfaces derive from this class. More...
#include <html_element.h>
Inherits DOM::Element.
Inherited by DOM::HTMLAnchorElement, DOM::HTMLAppletElement, DOM::HTMLAreaElement, DOM::HTMLBaseElement, DOM::HTMLBaseFontElement, DOM::HTMLBlockquoteElement, DOM::HTMLBodyElement, DOM::HTMLBRElement, DOM::HTMLButtonElement, DOM::HTMLDirectoryElement, DOM::HTMLDivElement, DOM::HTMLDListElement, DOM::HTMLFieldSetElement, DOM::HTMLFontElement, DOM::HTMLFormElement, DOM::HTMLFrameElement, DOM::HTMLFrameSetElement, DOM::HTMLHeadElement, DOM::HTMLHeadingElement, DOM::HTMLHRElement, DOM::HTMLHtmlElement, DOM::HTMLIFrameElement, DOM::HTMLImageElement, DOM::HTMLInputElement, DOM::HTMLIsIndexElement, DOM::HTMLLabelElement, DOM::HTMLLayerElement, DOM::HTMLLegendElement, DOM::HTMLLIElement, DOM::HTMLLinkElement, DOM::HTMLMapElement, DOM::HTMLMenuElement, DOM::HTMLMetaElement, DOM::HTMLModElement, DOM::HTMLObjectElement, DOM::HTMLOListElement, DOM::HTMLOptGroupElement, DOM::HTMLOptionElement, DOM::HTMLParagraphElement, DOM::HTMLParamElement, DOM::HTMLPreElement, DOM::HTMLQuoteElement, DOM::HTMLScriptElement, DOM::HTMLSelectElement, DOM::HTMLStyleElement, DOM::HTMLTableCaptionElement, DOM::HTMLTableCellElement, DOM::HTMLTableColElement, DOM::HTMLTableElement, DOM::HTMLTableRowElement, DOM::HTMLTableSectionElement, DOM::HTMLTextAreaElement, DOM::HTMLTitleElement, and DOM::HTMLUListElement.
Public Member Functions | |
void | addCSSProperty (const DOMString &property, const DOMString &value) |
HTMLCollection | all () const |
HTMLCollection | children () const |
DOMString | className () const |
DOMString | dir () const |
HTMLElement (const Node &other) | |
HTMLElement (const HTMLElement &other) | |
HTMLElement () | |
DOMString | id () const |
DOMString | innerHTML () const |
DOMString | innerText () const |
DOMString | lang () const |
HTMLElement & | operator= (const Node &other) |
HTMLElement & | operator= (const HTMLElement &other) |
void | removeCSSProperty (const DOMString &property) |
void | setClassName (const DOMString &) |
void | setDir (const DOMString &) |
void | setId (const DOMString &) |
void | setInnerHTML (const DOMString &html) |
void | setInnerText (const DOMString &text) |
void | setLang (const DOMString &) |
void | setTitle (const DOMString &) |
DOMString | title () const |
~HTMLElement () | |
Protected Member Functions | |
void | assignOther (const Node &other, int elementId) |
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
style
attribute for this interface is reserved for future usage.
Definition at line 69 of file html_element.h.
Constructor & Destructor Documentation
HTMLElement::HTMLElement | ( | ) |
Definition at line 31 of file html_element.cpp.
HTMLElement::HTMLElement | ( | const HTMLElement & | other | ) |
Definition at line 35 of file html_element.cpp.
DOM::HTMLElement::HTMLElement | ( | const Node & | other | ) | [inline] |
Definition at line 80 of file html_element.h.
HTMLElement::HTMLElement | ( | HTMLElementImpl * | impl | ) | [protected] |
Definition at line 39 of file html_element.cpp.
HTMLElement::~HTMLElement | ( | ) |
Definition at line 61 of file html_element.cpp.
Member Function Documentation
Definition at line 127 of file html_element.cpp.
HTMLCollection HTMLElement::all | ( | ) | const |
Retrieves a collection of all nodes that descend from this node.
IE-specific extension.
Definition at line 172 of file html_element.cpp.
Definition at line 178 of file html_element.cpp.
HTMLCollection HTMLElement::children | ( | ) | const |
Retrieves a collection of nodes that are direct descendants of this node.
IE-specific extension.
Definition at line 166 of file html_element.cpp.
DOMString HTMLElement::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.
Definition at line 109 of file html_element.cpp.
DOMString HTMLElement::dir | ( | ) | const |
Specifies the base direction of directionally neutral text and the directionality of tables.
See the dir attribute definition in HTML 4.0.
Definition at line 98 of file html_element.cpp.
DOMString HTMLElement::id | ( | ) | const |
The element's identifier.
See the id attribute definition in HTML 4.0.
Definition at line 65 of file html_element.cpp.
DOMString HTMLElement::innerHTML | ( | ) | const |
The HTML code contained in this element.
This function is not part of the DOM specifications as defined by the w3c.
Definition at line 134 of file html_element.cpp.
DOMString HTMLElement::innerText | ( | ) | const |
The text contained in this element.
This function is not part of the DOM specifications as defined by the w3c.
Definition at line 150 of file html_element.cpp.
DOMString HTMLElement::lang | ( | ) | const |
Language code defined in RFC 1766.
See the lang attribute definition in HTML 4.0.
Definition at line 87 of file html_element.cpp.
HTMLElement & HTMLElement::operator= | ( | const Node & | other | ) |
Reimplemented from DOM::Element.
Reimplemented in DOM::HTMLBodyElement, DOM::HTMLFrameElement, DOM::HTMLFrameSetElement, DOM::HTMLIFrameElement, DOM::HTMLHeadElement, DOM::HTMLHtmlElement, DOM::HTMLBlockquoteElement, DOM::HTMLDivElement, DOM::HTMLHRElement, DOM::HTMLHeadingElement, DOM::HTMLParagraphElement, DOM::HTMLPreElement, DOM::HTMLLayerElement, DOM::HTMLButtonElement, DOM::HTMLFieldSetElement, DOM::HTMLFormElement, DOM::HTMLInputElement, DOM::HTMLLabelElement, DOM::HTMLLegendElement, DOM::HTMLOptGroupElement, DOM::HTMLSelectElement, DOM::HTMLTextAreaElement, DOM::HTMLOptionElement, DOM::HTMLIsIndexElement, DOM::HTMLBaseElement, DOM::HTMLLinkElement, DOM::HTMLMetaElement, DOM::HTMLScriptElement, DOM::HTMLStyleElement, DOM::HTMLTitleElement, DOM::HTMLAreaElement, DOM::HTMLImageElement, DOM::HTMLMapElement, DOM::HTMLAnchorElement, DOM::HTMLBRElement, DOM::HTMLFontElement, DOM::HTMLModElement, DOM::HTMLQuoteElement, DOM::HTMLDListElement, DOM::HTMLDirectoryElement, DOM::HTMLLIElement, DOM::HTMLMenuElement, DOM::HTMLOListElement, DOM::HTMLUListElement, DOM::HTMLBaseFontElement, DOM::HTMLAppletElement, DOM::HTMLObjectElement, DOM::HTMLParamElement, DOM::HTMLTableCaptionElement, DOM::HTMLTableCellElement, DOM::HTMLTableColElement, DOM::HTMLTableElement, DOM::HTMLTableRowElement, and DOM::HTMLTableSectionElement.
Definition at line 49 of file html_element.cpp.
HTMLElement & HTMLElement::operator= | ( | const HTMLElement & | other | ) |
Definition at line 43 of file html_element.cpp.
void HTMLElement::removeCSSProperty | ( | const DOMString & | property | ) |
Definition at line 120 of file html_element.cpp.
void HTMLElement::setClassName | ( | const DOMString & | value | ) |
void HTMLElement::setDir | ( | const DOMString & | value | ) |
void HTMLElement::setId | ( | const DOMString & | value | ) |
void HTMLElement::setInnerHTML | ( | const DOMString & | html | ) |
Set the HTML content of this node.
- Exceptions:
-
DOMException NO_MODIFICATION_ALLOWED_ERR: Raised if there is the element does not allow children.
Definition at line 140 of file html_element.cpp.
void HTMLElement::setInnerText | ( | const DOMString & | text | ) |
Set the text content of this node.
- Exceptions:
-
DOMException NO_MODIFICATION_ALLOWED_ERR: Raised if there is the element does not allow children.
Definition at line 156 of file html_element.cpp.
void HTMLElement::setLang | ( | const DOMString & | value | ) |
void HTMLElement::setTitle | ( | const DOMString & | value | ) |
DOMString HTMLElement::title | ( | ) | const |
The element's advisory title.
See the title attribute definition in HTML 4.0.
Definition at line 76 of file html_element.cpp.
The documentation for this class was generated from the following files: