Dom-processinginstruction-object

提供:Dev Guides
2020年6月23日 (火) 09:04時点におけるMaintenance script (トーク | 投稿記録)による版 (Imported from text file)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

DOM-ProcessingInstructionオブジェクト

_ProcessingInstruction_は、XMLドキュメントのプロローグセクションに通常含まれているアプリケーション固有の情報を提供します。

処理命令(PI)を使用して、情報をアプリケーションに渡すことができます。 PIは、ドキュメント内のマークアップ外のどこにでも表示できます。 それらは、文書タイプ定義(DTD)を含むプロローグ、テキストコンテンツ、または文書の後に表示できます。

PIは特別なタグ* <?で始まり、?> で終わります。 コンテンツの処理は、文字列?> *が検出された直後に終了します。

属性

次の表は、_ProcessingInstruction_オブジェクトの属性を示しています-

Attribute Type Description
data DOMString It is a character that describes the information for the application to process immediately preceding the ?>.
target DOMString This identifies the application to which the instruction or the data is directed.