Наши волонтёры ещё не перевели данную статью на Русский. Присоединяйтесь к нам и помогите сделать эту работу!
Вы можете также прочитать эту статью на English (US).

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

Метки документа и участники

Внесли вклад в эту страницу: connorshea, stevenwdv, Tigt, fscholz, SphinxKnight, Reachmeatshivam, Sheppy, Brettz9, George3
Обновлялась последний раз: connorshea,