Name
ProcessingInstruction — a processing instruction in an XML document
Availability
DOM Level 1 XML
Inherits from/Overrides
Node → ProcessingInstruction
Properties
-
String data
The content of the processing instruction (i.e., the first non-space character after the target up to but not including the closing
?>
).-
readonly String target
The target of the processing instruction. This is the first identifier that follows the opening
<?
; it specifies the “processor” for which the processing instruction is intended.
Description
This infrequently used interface represents a processing instruction (or PI) in an XML document. Programmers working with HTML documents will never encounter a ProcessingInstruction node.
See Also
Returned by
Document.createProcessingInstruction( )
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.