ProcessingInstruction class

The interface represents a processing instruction; that is, a Node which embeds an instruction targeting a specific application but that can be ignored by any other applications which don't recognize the instruction.

Warning: nodes are only supported in XML documents, not in HTML documents. In these, a process instruction will be considered as a comment and be represented as a Comment object in the tree.

A processing instruction may be different than the XML declaration.

Note: User-defined processing instructions cannot begin with "xml", as xml-prefixed processing-instruction target names are reserved by the XML specification for particular, standard uses (see, for example, <?xml-stylesheet ?>.

For example: <?xml version="1.0"?> is a processing instruction whose targetis xml.

EventTarget

Node

CharacterData

ProcessingInstruction

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

ProcessingInstruction()
factory

Properties

baseURI String

Available on Node, provided by the PropsNode extension

no setter
childNodes NodeList

Available on Node, provided by the PropsNode extension

no setter
data String

Available on CharacterData, provided by the PropsCharacterData extension

getter/setter pair
firstChild Node?

Available on Node, provided by the PropsNode extension

no setter
hashCode int
The hash code for this object.
no setterinherited
isConnected bool

Available on Node, provided by the PropsNode extension

no setter
lastChild Node?

Available on Node, provided by the PropsNode extension

no setter
length int

Available on CharacterData, provided by the PropsCharacterData extension

no setter
nextElementSibling Element?

Available on NonDocumentTypeChildNode, provided by the PropsNonDocumentTypeChildNode extension

no setter
nextSibling Node?

Available on Node, provided by the PropsNode extension

no setter
nodeName String

Available on Node, provided by the PropsNode extension

no setter
nodeType int

Available on Node, provided by the PropsNode extension

no setter
nodeValue String?

Available on Node, provided by the PropsNode extension

getter/setter pair
ownerDocument Document?

Available on Node, provided by the PropsNode extension

no setter
parentElement Element?

Available on Node, provided by the PropsNode extension

no setter
parentNode Node?

Available on Node, provided by the PropsNode extension

no setter
previousElementSibling Element?

Available on NonDocumentTypeChildNode, provided by the PropsNonDocumentTypeChildNode extension

no setter
previousSibling Node?

Available on Node, provided by the PropsNode extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sheet CSSStyleSheet?

Available on LinkStyle, provided by the PropsLinkStyle extension

no setter
target String

Available on ProcessingInstruction, provided by the PropsProcessingInstruction extension

no setter
textContent String?

Available on Node, provided by the PropsNode extension

getter/setter pair

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

after([dynamic nodes1, dynamic nodes2, dynamic nodes3]) → void

Available on ChildNode, provided by the PropsChildNode extension

appendChild(Node node) Node

Available on Node, provided by the PropsNode extension

appendData(String data) → void

Available on CharacterData, provided by the PropsCharacterData extension

before([dynamic nodes1, dynamic nodes2, dynamic nodes3]) → void

Available on ChildNode, provided by the PropsChildNode extension

cloneNode([bool? deep = false]) Node

Available on Node, provided by the PropsNode extension

compareDocumentPosition(Node other) int

Available on Node, provided by the PropsNode extension

contains(Node? other) bool

Available on Node, provided by the PropsNode extension

deleteData(int offset, int count) → void

Available on CharacterData, provided by the PropsCharacterData extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

getRootNode([GetRootNodeOptions? options]) Node

Available on Node, provided by the PropsNode extension

hasChildNodes() bool

Available on Node, provided by the PropsNode extension

insertBefore(Node node, Node? child) Node

Available on Node, provided by the PropsNode extension

insertData(int offset, String data) → void

Available on CharacterData, provided by the PropsCharacterData extension

isDefaultNamespace(String? namespace) bool

Available on Node, provided by the PropsNode extension

isEqualNode(Node? otherNode) bool

Available on Node, provided by the PropsNode extension

isSameNode(Node? otherNode) bool

Available on Node, provided by the PropsNode extension

lookupNamespaceURI(String? prefix) String?

Available on Node, provided by the PropsNode extension

lookupPrefix(String? namespace) String?

Available on Node, provided by the PropsNode extension

normalize() → void

Available on Node, provided by the PropsNode extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove() → void

Available on ChildNode, provided by the PropsChildNode extension

removeChild(Node child) Node

Available on Node, provided by the PropsNode extension

removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

replaceChild(Node node, Node child) Node

Available on Node, provided by the PropsNode extension

replaceData(int offset, int count, String data) → void

Available on CharacterData, provided by the PropsCharacterData extension

replaceWith([dynamic nodes1, dynamic nodes2, dynamic nodes3]) → void

Available on ChildNode, provided by the PropsChildNode extension

substringData(int offset, int count) String

Available on CharacterData, provided by the PropsCharacterData extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited