Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

ProcessingInstruction

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

A processing instruction provides an opportunity for application-specific instructions to be embedded within XML and which can be ignored by XML processors which do not support processing their instructions (outside of their having a place in the DOM).

A Processing instruction is distinct from a XML Declaration which is used for other information about the document such as encoding and which appear (if it does) as the first item in the document.

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

Also inherits methods and properties from Node.

Attributes

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

Specification

See also

文档标签和贡献者

标签: 
 此页面的贡献者: fscholz, SphinxKnight, Reachmeatshivam, Sheppy, Brettz9, George3
 最后编辑者: fscholz,