IElement
Definition
Namespace:Telerik.Windows.Documents.FormatProviders.Html.Parsing.Dom
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public interface IElement : INode
Inherited Members
Properties
The name of the element. For example, in:
<pre> <elementExample
id="demo"> ... </elementExample> , </pre>
<pre><code class="lang-csharp">tagName</code></pre>
has the value
<pre><code class="lang-csharp">"elementExample"</code></pre>
. Note that this is
case-preserving in XML, as are all of the operations of the DOM. The
HTML DOM returns the
<pre><code class="lang-csharp">tagName</code></pre>
of an HTML element in the canonical uppercase form, regardless of the case in the source HTML document.
string TagName { get; }
Methods
Retrieves an
<pre><code class="lang-csharp">Attr</code></pre>
node by local name and namespace URI. HTML-only DOM implementations do not need to implement this method.
IAttr GetAttributeNodeNS(string namespaceUri, string localName)
The
<pre><code class="lang-csharp">Attr</code></pre>
node with the specified attribute local name and namespace URI or
<pre><code class="lang-csharp">null</code></pre>
if there is no such attribute.
Retrieves an attribute value by local name and namespace URI. HTML-only DOM implementations do not need to implement this method.
Returns a
<pre><code class="lang-csharp">NodeList</code></pre>
of all descendant
Elements
with a given tag name, in the order in which they are encountered in
a preorder traversal of this
<pre><code class="lang-csharp">Element</code></pre>
tree.
Returns a
<pre><code class="lang-csharp">NodeList</code></pre>
of all the descendant
<pre><code class="lang-csharp">Elements</code></pre>
with a given local name and namespace URI in the order in which they are encountered in a preorder traversal of this
<pre><code class="lang-csharp">Element</code></pre>
tree.
HTML-only DOM implementations do not need to implement this method.
Returns
<pre><code class="lang-csharp">true</code></pre>
when an attribute with a given name is specified on this element or has a default value,
<pre><code class="lang-csharp">false</code></pre>
otherwise.
Returns
<pre><code class="lang-csharp">true</code></pre>
when an attribute with a given local name and namespace URI is specified on this element or has a default value,
<pre><code class="lang-csharp">false</code></pre>
otherwise. HTML-only DOM implementations do not need to implement this method.
Removes the specified attribute node. If the removed
<pre><code class="lang-csharp">Attr</code></pre>
has a default value it is immediately replaced. The replacing
attribute has the same namespace URI and local name, as well as the
original prefix, when applicable.
IAttr RemoveAttributeNode(IAttr oldAttr)
The
<pre><code class="lang-csharp">Attr</code></pre>
node that was removed.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
<br />NOT_FOUND_ERR: Raised if
<pre><code class="lang-csharp">oldAttr</code></pre>
is not an attribute of the element.