• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KHTML

  • DOM
  • HTMLElement
Public Member Functions | Protected Member Functions

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.

List of all members.

Public Member Functions

 HTMLElement ()
 HTMLElement (const HTMLElement &other)
 HTMLElement (const Node &other)
 ~HTMLElement ()
void addCSSProperty (const DOMString &property, const DOMString &value)
HTMLCollection all () const
HTMLCollection children () const
DOMString className () const
DOMString contentEditable () const
DOMString dir () const
DOMString id () const
DOMString innerHTML () const
DOMString innerText () const
bool isContentEditable () const
DOMString lang () const
HTMLElement & operator= (const HTMLElement &other)
HTMLElement & operator= (const Node &other)
void removeCSSProperty (const DOMString &property)
void setClassName (const DOMString &)
void setContentEditable (const DOMString &enabled)
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

Protected Member Functions

 HTMLElement (HTMLElementImpl *impl)
void assignOther (const Node &other, int elementId)

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.

DOM::HTMLElement::HTMLElement ( const Node &  other) [inline]

Definition at line 80 of file html_element.h.

HTMLElement::HTMLElement ( HTMLElementImpl *  impl) [protected]

Definition at line 37 of file html_element.cpp.

HTMLElement::~HTMLElement ( )

Definition at line 59 of file html_element.cpp.


Member Function Documentation

void HTMLElement::addCSSProperty ( const DOMString &  property,
const DOMString &  value 
)

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.

void HTMLElement::assignOther ( const Node &  other,
int  elementId 
) [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.

Reimplemented from DOM::Element.

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 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 47 of file html_element.cpp.

HTMLElement & HTMLElement::operator= ( const HTMLElement &  other)

Definition at line 41 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:
enabledmay 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:
DOMExceptionNO_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:
DOMExceptionNO_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:
  • html_element.h
  • html_element.cpp

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal