Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

ProcessingInstruction

BaselineWidely available

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

Warning:ProcessingInstruction nodes are only supported in XML documents, not in HTML documents. In these, a process instruction will be considered as a comment and be represented as aComment object in the tree.

A processing instruction may be different than theXML declaration.

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

For example:

html
<?xml version="1.0"?>

is a processing instruction whosetarget isxml.

EventTarget Node CharacterData ProcessingInstruction

Instance properties

This interface also inherits properties from its parent interfaces,CharacterData,Node, andEventTarget.

ProcessingInstruction.sheetRead only

Returns the associatedStyleSheet object, if any; ornull if none.

ProcessingInstruction.targetRead only

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

Instance methods

This interface doesn't have any specific method, but inherits methods from its parent interfaces,CharacterData,Node, andEventTarget.

Specifications

Specification
DOM
# interface-processinginstruction

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp