dom / latest / processinginstruction / sheet.html /

ProcessingInstruction.sheet

The read-only sheet property of the ProcessingInstruction interface represent the name of the stylesheet associated to the ProcessingInstruction.

The xml-stylesheet processing instruction is used to associate a stylesheet in an XML file.

Value

A string containing the name of the associated stylesheet, or null if there are none.

Example

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="rule.css"?>
...

The sheet property of the processing instruction will return rule.css.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
sheet
1
12
1
9
15
1
1
18
4
14
1
1.0

See also

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet