tmpvar/jsdom — Issue #343: Not serializing dynamically added style attribute
Author: Acek
Created: 2011-10-19 21:21:32+00:00
State: open

First, Awesome project! Thanks.

So now on the issue: the double attribute serialization is fixed and the following works well:

1 var jsdom = require('jsdom');
2 jsdom.env("

", [], function(err, window) {
3 var doc = window.document
6 console.log(doc.outerHTML);
7 });

>>

But when we add the styles through DOM manipulation it doesnt serialize:

1 var jsdom = require('jsdom');
2 jsdom.env("

", [], function(err, window) {
3 var doc = window.document
4 doc.getElementById('fooStyle').style.width = "200px";
5 doc.getElementById('fooStyle').style.height = "200px";
6 console.log(doc.outerHTML);
7 });

>>

Somebody who knows the code cares to have a look?
Thanks in advance.