MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. Even if an XML processor ignores processing instructions, it will give them a place in the DOM.

A processing instruction is different from the XML declaration, which supplies information about the document such as character encoding, and can only appear as the first item in a document.

User-defined processing instructions cannot begin with 'xml', as these are reserved (such as <?xml-stylesheet ?>).

Processing instructions inherit methods and properties from Node.

Attributes

  • target (DOMString) - after the <? and before whitespace separating it from data
  • data (DOMString) - first non-whitespace character after target and before ?>

Specification

See also

Document Tags and Contributors

Tags: 
 Contributors to this page: stevenwdv, Tigt, fscholz, SphinxKnight, Reachmeatshivam, Sheppy, Brettz9, George3
 Last updated by: stevenwdv,