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.
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.
A string containing the name of the associated stylesheet, or null
if there are none.
<?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
.
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
|
12
|
1
|
9
|
15
|
1
|
1
|
18
|
4
|
14
|
1
|
1.0
|
© 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