Navigation Menu

Skip to content

Commit

Permalink
Fix: CSSOM constructors should be available on the DOM.
Browse files Browse the repository at this point in the history
level2/style.js adds properties to the level2 core instance, so it
shouldn't operate on a cloned version.
  • Loading branch information
brianmcd committed Nov 17, 2011
1 parent 4ba49c9 commit 3d64119
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/jsdom/level2/style.js
Expand Up @@ -4,9 +4,6 @@ var core = require("./core").dom.level2.core,
cssom = require("cssom"),
assert = require('assert');

// modify cloned instance for more info check: https://github.com/tmpvar/jsdom/issues/325
core = Object.create(core);

// What works now:
// - Accessing the rules defined in individual stylesheets
// - Modifications to style content attribute are reflected in style property
Expand Down

0 comments on commit 3d64119

Please sign in to comment.