ProcessingInstruction (W3C DOM Core object)
ProcessingInstruction interface inherits from
Node, and represents an XML processing instruction.
ProcessingInstruction node cannot have children.
The XML Prolog at the top of an XML document is not a processing instruction, even though it looks like one.
Internet Explorer and Opera
9.0 treat an XML Prolog as though it were a processing
instruction — it appears in the DOM as a
ProcessingInstruction is an XML
construct, it's only reasonable to judge its behavior in terms of XML
(either on HTML pages in XHTML mode1, or pure XML). The
behavioral variations of browsers in HTML mode2 are documented
here for interest and reference, but the support summary table above
does not consider this behavior (ie. if the interface works fully in
XML then it's considered to be fully supported, with no notes).
Firefox in HTML mode and Safari in HTML mode cannot see processing instructions at all.
Opera 9.5 in HTML mode still treats an
XML Prolog as a
In this Section
1 On XHTML pages served as
2 On XHTML or HTML
pages served as
3 IE6 ignores the first two characters in
the target name (for example,
xml-stylesheet), as though they're assumed to have
"--", like a normal comment, even though they
weren't. Likewise the last two characters,
There are no comments yet.