ProcessingInstruction in DOM Level 2 Core
The ProcessingInstruction interface represents a processing instruction in the document.
For more information see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1004215813.
Inherits from:
Instance Properties
name | type | description |
---|---|---|
attributes | NamedNodeMap | (read only) [from Node] |
childNodes | NodeList | (read only) [from Node] |
data | String | |
firstChild | Node | (read only) [from Node] |
lastChild | Node | (read only) [from Node] |
localName | String | (read only) [from Node] |
namespaceURI | String | (read only) [from Node] |
nextSibling | Node | (read only) [from Node] |
nodeName | String | (read only) [from Node] |
nodeType | Number | (read only) [from Node] |
nodeValue | String | [from Node] |
ownerDocument | Document | (read only) [from Node] |
parentNode | Node | (read only) [from Node] |
prefix | String | [from Node] |
previousSibling | Node | (read only) [from Node] |
target | String | (read only) |
Instance Methods
name | returns | description |
---|---|---|
addEventListener(type,listener,useCapture) | (none) | [from EventTarget] |
appendChild(newChild) | Node | [from Node] |
cloneNode(deep) | Node | Return a new copy of the node. [from Node] |
dispatchEvent(evt) | Boolean | Dispatches an event to the invoking object. [from EventTarget] |
hasAttributes() | Boolean | [from Node] |
hasChildNodes() | Boolean | [from Node] |
insertBefore(newChild,refChild) | Node | [from Node] |
isSupported(feature,version) | Boolean | [from Node] |
normalize() | (none) | [from Node] |
removeChild(oldChild) | Node | [from Node] |
removeEventListener(type,listener,useCapture) | (none) | [from EventTarget] |
replaceChild(newChild,oldChild) | Node | [from Node] |
Description
The
ProcessingInstruction
interface represents a "processing instruction", used in XML as a way to keep processor-specific information in the text of the document. Methods that return a ProcessingInstruction
name | of object | description |
---|---|---|
createProcessingInstruction(target,data) | Document |