ProcessingInstruction

The ProcessingInstruction interface represents a processing instruction; that is, a Node which embeds an instruction targeting a specific application but that can be ignored by any other applications which don't recognize the instruction.

A processing instruction is different from the XML declaration.

Note: User-defined processing instructions cannot begin with "xml", as xml-prefixed processing-instruction target names are reserved by the XML specification for particular, standard uses (see, for example, <?xml-stylesheet ?>).

The ProcessingInstruction interface inherits methods and properties from Node.

Properties

target (DOMString) Read only

A name identifying the application to which the instruction is targeted.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
ProcessingInstruction
1
12
1
9
≤12.1
≤4
1
18
4
≤12.1
≤3
1.0
data
1
12
1
9
≤12.1
≤4
1
18
4
≤12.1
≤3
1.0
target
1
12
1
9
≤12.1
≤4
1
18
4
≤12.1
≤3
1.0
sheet
1
12
1
9
15
1
1
18
4
14
1
1.0

See also

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction