Name

ProcessingInstruction : a processing instruction in an XML document — DOM Level 1 XML: Node → ProcessingInstruction

Properties

String data

The content of the processing instruction (i.e., the first nonspace 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

Document.createProcessingInstruction()

Get JavaScript: The Definitive Guide, 5th 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.