Anyone know how a clean way to detect support for exclusive disclosures (the `
-
Anyone know how a clean way to detect support for exclusive disclosures (the `<details name>` attribute)?
At the moment, I've resulting in appending two invisible `<details name="the-same">` elements, opening them both and checking if the first has been closed automatically and I'd rather avoid the wasteful DOM manipulation (and the 22 lines of code!)
-
@ryantownsend Can't you check whether"name" exists in HTMLDetailsElement.prototype? The getter should not be there unless the feature is supported.
-
@sir_pepe ️ why did I not think of this... it's been a long week!
Thank you
Copyright © 2024 NodeBB | Contributors