While answering this question DOM parser: remove certain attributes only I noticed that some properties are expanded and transformed in the element.style property. For example:
<div style="font-weight: bold"></div>
The style of this div contains one property, font-weight, as one might expect. However:
<div style="font-decoration: underline"></div>
For this div, the style property, in Firefox, contains four properties: -moz-text-blink, -moz-text-decoration-color, -moz-text-decoration-line, -moz-text-decoration-style.
Is the only way to obtain the original font-decoration to parse the style attribute myself, or is there a better way? Should I parse it myself, or is there a "standard" way of doing this?