ProcessingInstruction Interface

The ProcessingInstruction interface represents a "processing instruction", used in XML as a way to keep the processor-specific information in the text of the document.



IDL Definition

interface processingInstruction : Node {

        readonly attribute  DOMString                 target;
                 attribute  DOMString                 data;
                                                 //raises(DOMException) on setting
};

Semantic Requirements

  1. The target attribute is the target of the processing instruction. It is the first token following the markup that begins the processing instruction
  2. The content attribute is the content of the processing instruction. It starts at the first non white character after the target and ends at the character immediately preceding the "?>".
  3. DOMExceptions

  4. The data attribute raises a NO_MODIFICATION_ALLOWED_ERR DOMException when the node is readonly.

If you have comments or suggestions, email me at mbrady@nist.gov