Best practice for reading styles of element JSDOM : <p>To get style attributes from an element using JSDOM, I use the following:</p>

<pre><code>window.getComputedStyle(element)
</code></pre>

<p>It's the only example I've found. Using <code>element.style.someAttribute</code> does not seem to return anything.</p>

<p>Is usinging <code>getComputedStyle</code> the best way to find the values of attributes?</p>

<p>ty!</p>
