Table of Contents

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.

See also on MDN

Methods

After(params Union32[])

The Element.after() method inserts a set of
Node objects or strings in the children list of the
Element's parent, just after the Element.
Strings are inserted as equivalent Text nodes.

[Value("after")]
GlobalObject.Undefined After(params Union32[] nodes)

Parameters

nodes Union32[]

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks

-Element.Before
-Element.Append
-InsertAdjacentElement(string, Element)
-CharacterData.After
-DocumentType.After
-AppendChild(Node)
-NodeList

See also on MDN

Before(params Union31[])

The Element.before() method inserts a set of
Node objects or strings in the children list of this
Element's parent, just before this Element.
Strings are inserted as equivalent Text nodes.

[Value("before")]
GlobalObject.Undefined Before(params Union31[] nodes)

Parameters

nodes Union31[]

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks

-Element.After
-Element.Append
-InsertAdjacentElement(string, Element)
-CharacterData.Before
-DocumentType.Before
-AppendChild(Node)
-InsertBefore(Node, Node?)
-NodeList

See also on MDN

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

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks

-CharacterData.Remove
-DocumentType.Remove

See also on MDN

ReplaceWith(params Union33[])

The Element.replaceWith() method replaces this
Element 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

nodes Union33[]

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks

-ReplaceChild(Node, Node)
-NodeList
-CharacterData.ReplaceWith
-DocumentType.ReplaceWith

See also on MDN