tmpvar/jsdom — pull request #468 by chad3814 (2012-07-11 05:45:43+00:00)
Title: replace CSSOM's CSSStyleDeclaration with mine

From the various discussions other pull requests on NV's CSSOM, it looks like NV doesn't want to add CSS2Properties to CSSOM. Unfortunately, that is how jQuery sets style attributes within $.fn.css(). I use node-jquery (and by extension jsdom and CSSOM) at work, so I modified NV's CSSStyleDeclaration class to support the CSS2Properties interface and pushed out a module for it, cssstyle. This commit makes jsdom use cssstyle's CSSStyleDeclaration instead of CSSOM's.

It makes this possible:

> var jsdom = require('jsdom')
undefined
> var document = jsdom.jsdom()
undefined
> var div = document.createElement('div')
undefined
> div.style.backgroundColor = 'blue'
'blue'
> div.outerHTML
'

\n'
>