\section{DOM::HTMLElement Class Reference}
\label{classDOM_1_1HTMLElement}\index{DOM::HTMLElement@{DOM::HTMLElement}}
All HTML element interfaces derive from this class.  


{\tt \#include $<$html\_\-element.h$>$}

Inheritance diagram for DOM::HTMLElement:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=255pt]{classDOM_1_1HTMLElement__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for DOM::HTMLElement:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=77pt]{classDOM_1_1HTMLElement__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf HTMLElement} (const  {\bf HTMLElement} \&other)\label{classDOM_1_1HTMLElement_a1}

\item 
{\bf HTMLElement} (const  {\bf Node} \&other)\label{classDOM_1_1HTMLElement_a2}

\item 
{\bf HTMLElement} \& {\bf operator=} (const  {\bf HTMLElement} \&other)\label{classDOM_1_1HTMLElement_a3}

\item 
{\bf HTMLElement} \& {\bf operator=} (const  {\bf Node} \&other)\label{classDOM_1_1HTMLElement_a4}

\item 
{\bf DOMString} {\bf id} () const 
\begin{CompactList}\small\item\em The element's identifier. \item\end{CompactList}\item 
void {\bf set\-Id} (const  {\bf DOMString} \&)
\begin{CompactList}\small\item\em see {\bf id}{\rm (p.\,\pageref{classDOM_1_1HTMLElement_a6})} \item\end{CompactList}\item 
{\bf DOMString} {\bf title} () const 
\begin{CompactList}\small\item\em The element's advisory title. \item\end{CompactList}\item 
void {\bf set\-Title} (const  {\bf DOMString} \&)
\begin{CompactList}\small\item\em see {\bf title}{\rm (p.\,\pageref{classDOM_1_1HTMLElement_a8})} \item\end{CompactList}\item 
{\bf DOMString} {\bf lang} () const 
\begin{CompactList}\small\item\em Language code defined in RFC 1766. \item\end{CompactList}\item 
void {\bf set\-Lang} (const  {\bf DOMString} \&)
\begin{CompactList}\small\item\em see {\bf lang}{\rm (p.\,\pageref{classDOM_1_1HTMLElement_a10})} \item\end{CompactList}\item 
{\bf DOMString} {\bf dir} () const 
\begin{CompactList}\small\item\em Specifies the base direction of directionally neutral text and the directionality of tables. \item\end{CompactList}\item 
void {\bf set\-Dir} (const  {\bf DOMString} \&)
\begin{CompactList}\small\item\em see {\bf dir}{\rm (p.\,\pageref{classDOM_1_1HTMLElement_a12})} \item\end{CompactList}\item 
{\bf DOMString} {\bf class\-Name} () const 
\begin{CompactList}\small\item\em The class attribute of the element. \item\end{CompactList}\item 
void {\bf set\-Class\-Name} (const  {\bf DOMString} \&)
\begin{CompactList}\small\item\em see {\bf class\-Name}{\rm (p.\,\pageref{classDOM_1_1HTMLElement_a14})} \item\end{CompactList}\item 
{\bf DOMString} {\bf inner\-HTML} () const 
\begin{CompactList}\small\item\em The HTML code contained in this element. \item\end{CompactList}\item 
void {\bf set\-Inner\-HTML} (const  {\bf DOMString} \&html)
\begin{CompactList}\small\item\em Set the HTML content of this node. \item\end{CompactList}\item 
{\bf DOMString} {\bf inner\-Text} () const 
\begin{CompactList}\small\item\em The text contained in this element. \item\end{CompactList}\item 
void {\bf set\-Inner\-Text} (const  {\bf DOMString} \&text)
\begin{CompactList}\small\item\em Set the text content of this node. \item\end{CompactList}\item 
{\bf HTMLCollection} {\bf children} () const 
\begin{CompactList}\small\item\em Retrieves a collection of nodes that are direct descendants of this node. \item\end{CompactList}\item 
{\bf HTMLCollection} {\bf all} () const 
\begin{CompactList}\small\item\em Retrieves a collection of all nodes that descend from this node. \item\end{CompactList}\item 
void {\bf remove\-CSSProperty} (const  {\bf DOMString} \&property)\label{classDOM_1_1HTMLElement_a22}

\item 
void {\bf add\-CSSProperty} (const  {\bf DOMString} \&property, const  {\bf DOMString} \&value)\label{classDOM_1_1HTMLElement_a23}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf HTMLElement} (HTMLElement\-Impl $\ast$impl)\label{classDOM_1_1HTMLElement_b0}

\item 
void {\bf assign\-Other} (const  {\bf Node} \&other, int element\-Id)\label{classDOM_1_1HTMLElement_b1}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf HTMLDocument}\label{classDOM_1_1HTMLElement_n0}

\item 
class {\bf ::KHTMLView}\label{classDOM_1_1HTMLElement_n1}

\item 
class {\bf HTMLTable\-Element}\label{classDOM_1_1HTMLElement_n2}

\item 
class {\bf HTMLTable\-Row\-Element}\label{classDOM_1_1HTMLElement_n3}

\item 
class {\bf HTMLTable\-Section\-Element}\label{classDOM_1_1HTMLElement_n4}

\end{CompactItemize}


\subsection{Detailed Description}
All HTML element interfaces derive from this class. 

Elements that only expose the HTML core attributes are represented by the base {\tt  {\bf HTMLElement}{\rm (p.\,\pageref{classDOM_1_1HTMLElement})} } 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 {\tt  style } attribute for this interface is reserved for future usage. 



Definition at line 68 of file html\_\-element.h.

\subsection{Member Function Documentation}
\index{DOM::HTMLElement@{DOM::HTMLElement}!id@{id}}
\index{id@{id}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLElement::id () const}\label{classDOM_1_1HTMLElement_a6}


The element's identifier. 

See the {\tt id attribute definition } in HTML 4.0. 

Definition at line 65 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!setId@{setId}}
\index{setId@{setId}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLElement::set\-Id (const {\bf DOMString} \&)}\label{classDOM_1_1HTMLElement_a7}


see {\bf id}{\rm (p.\,\pageref{classDOM_1_1HTMLElement_a6})} 



Definition at line 71 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!title@{title}}
\index{title@{title}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLElement::title () const}\label{classDOM_1_1HTMLElement_a8}


The element's advisory title. 

See the {\tt title attribute definition } in HTML 4.0. 

Definition at line 76 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!setTitle@{setTitle}}
\index{setTitle@{setTitle}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLElement::set\-Title (const {\bf DOMString} \&)}\label{classDOM_1_1HTMLElement_a9}


see {\bf title}{\rm (p.\,\pageref{classDOM_1_1HTMLElement_a8})} 



Definition at line 82 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!lang@{lang}}
\index{lang@{lang}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLElement::lang () const}\label{classDOM_1_1HTMLElement_a10}


Language code defined in RFC 1766. 

See the {\tt lang attribute definition } in HTML 4.0. 

Definition at line 87 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!setLang@{setLang}}
\index{setLang@{setLang}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLElement::set\-Lang (const {\bf DOMString} \&)}\label{classDOM_1_1HTMLElement_a11}


see {\bf lang}{\rm (p.\,\pageref{classDOM_1_1HTMLElement_a10})} 



Definition at line 93 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!dir@{dir}}
\index{dir@{dir}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLElement::dir () const}\label{classDOM_1_1HTMLElement_a12}


Specifies the base direction of directionally neutral text and the directionality of tables. 

See the {\tt dir attribute definition } in HTML 4.0. 

Definition at line 98 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!setDir@{setDir}}
\index{setDir@{setDir}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLElement::set\-Dir (const {\bf DOMString} \&)}\label{classDOM_1_1HTMLElement_a13}


see {\bf dir}{\rm (p.\,\pageref{classDOM_1_1HTMLElement_a12})} 



Definition at line 104 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!className@{className}}
\index{className@{className}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLElement::class\-Name () const}\label{classDOM_1_1HTMLElement_a14}


The class attribute of the element. 

This attribute has been renamed due to conflicts with the \char`\"{}class\char`\"{} keyword exposed by many languages. See the {\tt class attribute definition } in HTML 4.0. 

Definition at line 109 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!setClassName@{setClassName}}
\index{setClassName@{setClassName}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLElement::set\-Class\-Name (const {\bf DOMString} \&)}\label{classDOM_1_1HTMLElement_a15}


see {\bf class\-Name}{\rm (p.\,\pageref{classDOM_1_1HTMLElement_a14})} 



Definition at line 115 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!innerHTML@{innerHTML}}
\index{innerHTML@{innerHTML}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLElement::inner\-HTML () const}\label{classDOM_1_1HTMLElement_a16}


The HTML code contained in this element. 

This function is not part of the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} specifications as defined by the w3c. 

Definition at line 134 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!setInnerHTML@{setInnerHTML}}
\index{setInnerHTML@{setInnerHTML}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLElement::set\-Inner\-HTML (const {\bf DOMString} \& {\em html})}\label{classDOM_1_1HTMLElement_a17}


Set the HTML content of this node. 

\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]NO\_\-MODIFICATION\_\-ALLOWED\_\-ERR: Raised if there is the element does not allow children. \end{description}
\end{Desc}


Definition at line 140 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!innerText@{innerText}}
\index{innerText@{innerText}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLElement::inner\-Text () const}\label{classDOM_1_1HTMLElement_a18}


The text contained in this element. 

This function is not part of the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} specifications as defined by the w3c. 

Definition at line 149 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!setInnerText@{setInnerText}}
\index{setInnerText@{setInnerText}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLElement::set\-Inner\-Text (const {\bf DOMString} \& {\em text})}\label{classDOM_1_1HTMLElement_a19}


Set the text content of this node. 

\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]NO\_\-MODIFICATION\_\-ALLOWED\_\-ERR: Raised if there is the element does not allow children. \end{description}
\end{Desc}


Definition at line 155 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!children@{children}}
\index{children@{children}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf HTMLCollection} HTMLElement::children () const}\label{classDOM_1_1HTMLElement_a20}


Retrieves a collection of nodes that are direct descendants of this node. 

IE-specific extension. 

Definition at line 164 of file html\_\-element.cpp.\index{DOM::HTMLElement@{DOM::HTMLElement}!all@{all}}
\index{all@{all}!DOM::HTMLElement@{DOM::HTMLElement}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf HTMLCollection} HTMLElement::all () const}\label{classDOM_1_1HTMLElement_a21}


Retrieves a collection of all nodes that descend from this node. 

IE-specific extension. 

Definition at line 170 of file html\_\-element.cpp.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
html\_\-element.h\item 
html\_\-element.cpp\end{CompactItemize}
