| ▲ | bikeshaving 11 hours ago | |||||||||||||
I’m not sure this is correct. The DOM class HTMLDetailsElement has the `open` property, which you can use to read/write the details element’s state. If you’re using setAttribute/getAttribute just switch to the property. https://developer.mozilla.org/en-US/docs/Web/API/HTMLDetails... | ||||||||||||||
| ▲ | crooked-v 6 hours ago | parent [-] | |||||||||||||
Having to use the property on the element instance, rather than the actual HTML attribute, is exactly the kind of wrapper code I want to avoid if I'm using a built-in. | ||||||||||||||
| ||||||||||||||