Unsere Freiwilligen haben diesen Artikel noch nicht in Deutsch übersetzt. Machen Sie mit und helfen Sie, das zu erledigen!
Sie können den Artikel auch auf English (US) lesen.

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.


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


Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes ? Yes ? Yes ?
target Yes ? Yes ? Yes ?
data Yes ? Yes ? Yes ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes ? Yes Yes ? ?
target Yes Yes ? Yes Yes ? ?
data Yes Yes ? Yes Yes ? ?

See also

Schlagwörter des Dokuments und Mitwirkende

Zuletzt aktualisiert von: connorshea,