KHTML
#include <html_element.h>
Protected Member Functions | |
HTMLElement (HTMLElementImpl *impl) | |
void | assignOther (const Node &other, int elementId) |
Protected Member Functions inherited from DOM::Element | |
Element (ElementImpl *_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.
Definition at line 69 of file html_element.h.
Constructor & Destructor Documentation
HTMLElement::HTMLElement | ( | ) |
Definition at line 29 of file html_element.cpp.
HTMLElement::HTMLElement | ( | const HTMLElement & | other | ) |
Definition at line 33 of file html_element.cpp.
|
inline |
Definition at line 80 of file html_element.h.
|
protected |
Definition at line 37 of file html_element.cpp.
HTMLElement::~HTMLElement | ( | ) |
Definition at line 59 of file html_element.cpp.
Member Function Documentation
Definition at line 125 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 170 of file html_element.cpp.
|
protected |
Definition at line 176 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 164 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 107 of file html_element.cpp.
DOMString HTMLElement::contentEditable | ( | ) | const |
Returns the kind of editability that applies to this element.
The returned string is one of:
- true: This element has been set to be editable.
- false: This element has been set not to be editable.
- inherit: This element inherits its editability from the parent.
This function is not part of the DOM specifications as defined by the w3c.
Definition at line 192 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 96 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 63 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 132 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 148 of file html_element.cpp.
bool HTMLElement::isContentEditable | ( | ) | const |
Returns whether this element is editable.
This function is not part of the DOM specifications as defined by the w3c.
Definition at line 186 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 85 of file html_element.cpp.
HTMLElement & HTMLElement::operator= | ( | const HTMLElement & | other | ) |
Definition at line 41 of file html_element.cpp.
HTMLElement & HTMLElement::operator= | ( | const Node & | other | ) |
Definition at line 47 of file html_element.cpp.
void HTMLElement::removeCSSProperty | ( | const DOMString & | property | ) |
Definition at line 118 of file html_element.cpp.
void HTMLElement::setClassName | ( | const DOMString & | value | ) |
see className
Definition at line 113 of file html_element.cpp.
void HTMLElement::setContentEditable | ( | const DOMString & | enabled | ) |
Sets the editability of this element.
This function is not part of the DOM specifications as defined by the w3c.
- Parameters
-
enabled may be one of: - true: make element editable
- false: make element not editable
- inherit: make element inherit editability from parent.
Definition at line 197 of file html_element.cpp.
void HTMLElement::setDir | ( | const DOMString & | value | ) |
see dir
Definition at line 102 of file html_element.cpp.
void HTMLElement::setId | ( | const DOMString & | value | ) |
see id
Definition at line 69 of file html_element.cpp.
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 138 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 154 of file html_element.cpp.
void HTMLElement::setLang | ( | const DOMString & | value | ) |
see lang
Definition at line 91 of file html_element.cpp.
void HTMLElement::setTitle | ( | const DOMString & | value | ) |
see title
Definition at line 80 of file html_element.cpp.
DOMString HTMLElement::title | ( | ) | const |
The element's advisory title.
See the title attribute definition in HTML 4.0.
Definition at line 74 of file html_element.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.