ProcessingInstruction : Node
Return to: HTML DOM Level 2 index

Represents a Processing Instruction in an XML document.

Platform Support

IE Mozilla Netscape Opera Safari Chrome
no 1.0+ 7.0+ no no no

Constructors

Constructor Action IE Mozilla Netscape Opera Safari Chrome
ProcessingInstruction Constructor() : ProcessingInstruction
Represents a Processing Instruction in an XML document.
Show Details no 1.0+ 7.0+ no no no

ProcessingInstruction() : ProcessingInstruction

Represents a Processing Instruction in an XML document.

Returns
ProcessingInstruction

Visibility
internal

Properties

Property Action IE Mozilla Netscape Opera Safari Chrome
data : String
PI data or content
Show Details no 1.0+ 7.0+ no no no

For examples, see the quirksmode test page:

http://www.quirksmode.org/dom/tests/data.html

Remarks
Represents the content data of a processing instruction. This is the entire text between the target name and the closing ?> tag. Setting this value throws an exception if this node is marked as read-only.
Availability

HTML DOM Level 1|HTML DOM Level 2|W3C

target : String
PI target name
Show Details no 1.0+ 7.0+ no no no
Remarks
This is the name of this processing instruction. This is the text immediately following <? and and before the data.
Availability

HTML DOM Level 1|HTML DOM Level 2|W3C

Remarks

Represents a Processing Instruction, which is a way to keep document processing information inside an XML document. For instance, instructions on which stylesheets to apply can be defined in a processing instruction, even though that isn't directly related to the content of the document.

Availability

HTML DOM Level 1|HTML DOM Level 2|W3C

text_javascript aptana_docs