August 2006
Intermediate to advanced
1018 pages
34h 13m
English
Document.createProcessingInstruction( ): create a ProcessingInstruction node — DOM Level 1 Core:
ProcessingInstruction createProcessingInstruction(Stringtarget, Stringdata) throws DOMException;
target
The target of the processing instruction.
data
The content text of the processing instruction.
A newly created ProcessingInstruction node.
This method may throw a DOMException with one of the
following code values in the
following circumstances:
INVALID_CHARACTER_ERR
The specified target
contains an illegal character.
NOT_SUPPORTED_ERR
This is an HTML document and does not support processing instructions.
Read now
Unlock full access