ProcessingInstruction: sheet property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
The read-onlysheet property of theProcessingInstruction interfacecontains the stylesheet associated to theProcessingInstruction.
Thexml-stylesheet processing instruction is used to associate a stylesheet in an XML file.
In this article
Value
The associatedStylesheet object, ornull if there are none.
Example
xml
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/css" href="rule.css"?>…Thesheet property of the processing instruction will return theStyleSheet object describingrule.css.
Specifications
| Specification |
|---|
| CSS Object Model (CSSOM)> # dom-linkstyle-sheet> |
Browser compatibility
See also
- TheDOM API