Section 25.68. Document.createProcessingInstruction( ): create a ProcessingInstruction node


25.68. Document.createProcessingInstruction( ): create a ProcessingInstruction node

DOM Level 1 Core:

25.68.1. Synopsis

 ProcessingInstruction createProcessingInstruction(String target,                                                   String data)      throws DOMException; 

25.68.1.1. Arguments

target

The target of the processing instruction.


data

The content text of the processing instruction.

25.68.1.2. Returns

A newly created ProcessingInstruction node.

25.68.1.3. Throws

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.




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net