Interface ChildNode
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
Element is the most general base class from which all element objects (i.e., objects that represent elements) in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element.
[Value("ChildNode")]
public interface ChildNode
Remarks
For example, the HTMLElement interface is the base interface for HTML elements. Similarly, the SVGElement interface is the basis for all SVG elements, and the MathMLElement interface is the base interface for MathML elements. Most functionality is specified further down the class hierarchy.
Languages outside the realm of the Web platform, like XUL through the XULElement interface, also implement Element.
Methods
After(params Union32[])
The Element.after() method inserts a set of
Node objects or strings in the children list of theElement's parent, just after the Element.
Strings are inserted as equivalent Text nodes.
[Value("after")]
GlobalObject.Undefined After(params Union32[] nodes)
Parameters
nodesUnion32[]
Returns
Remarks
-Element.Before
-Element.Append
-InsertAdjacentElement(string, Element)
-CharacterData.After
-DocumentType.After
-AppendChild(Node)
-NodeList
Before(params Union31[])
The Element.before() method inserts a set of
Node objects or strings in the children list of thisElement's parent, just before this Element.
Strings are inserted as equivalent Text nodes.
[Value("before")]
GlobalObject.Undefined Before(params Union31[] nodes)
Parameters
nodesUnion31[]
Returns
Remarks
-Element.After
-Element.Append
-InsertAdjacentElement(string, Element)
-CharacterData.Before
-DocumentType.Before
-AppendChild(Node)
-InsertBefore(Node, Node?)
-NodeList
Remove()
The Element.remove() method removes the element from its parent node.
If it has no parent node, calling remove() does nothing.
[Value("remove")]
GlobalObject.Undefined Remove()
Returns
Remarks
-CharacterData.Remove
-DocumentType.Remove
ReplaceWith(params Union33[])
The Element.replaceWith() method replaces thisElement in the children list of its parent with a set of
Node objects or strings. Strings are inserted as equivalent Text nodes.
[Value("replaceWith")]
GlobalObject.Undefined ReplaceWith(params Union33[] nodes)
Parameters
nodesUnion33[]
Returns
Remarks
-ReplaceChild(Node, Node)
-NodeList
-CharacterData.ReplaceWith
-DocumentType.ReplaceWith