nodester/nodester — Issue #317: jsdom 0.2.12 and node 0.4.9
Author: albertosantini
Created: 2012-02-27 16:31:21+00:00
State: open

With jsdom 0.2.12, jquery 1.6.3 and node 0.4.9

TypeError: Cannot set property style of # which has only a getter
at Object.Node (/node_modules/trammi/node_modules/jquery/node_modules/jsdom/lib/jsdom/level1/core.js:348:14)
at Object.Element (/node_modules/trammi/node_modules/jquery/node_modules/jsdom/lib/jsdom/level1/core.js:970:13)
at Object. (/node_modules/trammi/node_modules/jquery/node_modules/jsdom/lib/jsdom/level2/html.js:155:17)
at Object. (/node_modules/trammi/node_modules/jquery/node_modules/jsdom/lib/jsdom/level2/html.js:155:17)
at /node_modules/trammi/node_modules/jquery/node_modules/jsdom/lib/jsdom/level2/html.js:203:16
at Object.createElement (/node_modules/trammi/node_modules/jquery/node_modules/jsdom/lib/jsdom/level1/core.js:1215:75)
at /node_modules/trammi/node_modules/jquery/node-jquery.js:1175:21
at /node_modules/trammi/node_modules/jquery/node-jquery.js:1423:2
at create (/node_modules/trammi/node_modules/jquery/node-jquery.js:9059:2)
at /node_modules/trammi/node_modules/jquery/node-jquery.js:9065:18

Locally with node 0.6.x it works fine.

The workaround is to load jsdom 0.2.10.
Maybe it works also jsdom 0.2.11, but I didn't test it.