Basic info:
- Node.js version: 16.17.0
- jsdom version: 20.0.0
Minimal reproduction case
const { JSDOM } = require('jsdom')
const dom = new JSDOM(`
<div>foo</div>
`)
console.log(dom.window.document.adoptedStyleSheets) // `undefined`
console.log(dom.window.document.documentElement.attachInternals) // `undefined`
adoptedStyleSheets API
attachInternals API
How does similar code behave in browsers?
(Link to a jsbin or similar strongly suggested.)
Basic info:
Minimal reproduction case
adoptedStyleSheets API
attachInternals API
How does similar code behave in browsers?
(Link to a jsbin or similar strongly suggested.)