target (W3C DOM Core property)

Spec
Version Depr. Static Read-only
DOM1 No No Yes
Browser support (more…)
IE5.5+ FF1.5+ SA1.3+ OP9+
Full Full Full Full

Example

<?xsl-stylesheet type="text/xml" href="test.xsl"?>

The example above shows an XSL processing instruction, whose target is xsl-stylesheet.

Description

The target of a ProcessingInstruction node, ie. the token immediately after the opening delimiter.

This property is readonly.

Compatibility

Internet Explorer Firefox Safari Opera
5.5 6.0 7.0 1.5 2.0 3.0 1.3 2.0 3.0 9.0 9.5
Full Full Full Full Full Full Full Full Full Full Full
: Works when available!

Firefox and Safari cannot see processing instructions in HTML mode1, and Internet Explorer doesn't see them as processing instructions (see ProcessingInstruction for details); however when available, this property always returns correctly, hence it's considered to be fully supported with no known issues.

Footnotes

1 On XHTML or HTML pages served as text/html.

User-contributed notes

There are no comments yet.

Related Products