Skip to content

Implement adoptedStyleSheets #3444

@nnmax

Description

@nnmax

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions