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() : ProcessingInstructionRepresents a Processing Instruction in an XML document. Returns
|
|||||||||
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 |
|
|||||||
|
target
: String
PI target name
|
Show Details | no | 1.0+ | 7.0+ | no | no | no |
|
|||||||
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