The read-only sheet
property of the ProcessingInstruction
interface contains the stylesheet associated to the ProcessingInstruction
.
The xml-stylesheet
processing instruction is used to associate a stylesheet in an XML file.
The read-only sheet
property of the ProcessingInstruction
interface contains the stylesheet associated to the ProcessingInstruction
.
The xml-stylesheet
processing instruction is used to associate a stylesheet in an XML file.
The associated Stylesheet
object, or null
if there are none.
xml
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/css" href="rule.css"?> …
The sheet
property of the processing instruction will return the StyleSheet
object describing rule.css
.
Specification |
---|
CSS Object Model (CSSOM) # dom-linkstyle-sheet |
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 | 79 | 1 | No | 15 | 1 | 4.4 | 18 | 4 | 14 | 1 | 1.0 |
© 2005–2023 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