To get style attributes from an element using JSDOM, I use the following:
window.getComputedStyle(element)
It's the only example I've found. Using element.style.someAttribute
does not seem to return anything.
Is usinging getComputedStyle
the best way to find the values of attributes?
ty!
Aucun commentaire:
Enregistrer un commentaire