Name

ProcessingInstruction — a processing instruction in an XML document

Inherits from

Node

Synopsis

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.

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.

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