You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/usr/bin/env node
var fs = require('fs');
var jsdom = require('jsdom').jsdom;
var window = jsdom(fs.readFileSync('test.html')).createWindow();
window.onload = function(){
console.log('loaded');
};
The error I receive is:
TypeError: Cannot set property cssText of [object Object] which has only a getter
at Object.<anonymous> (http://code.jquery.com/jquery-1.7.js:1621:27)
at Object.<anonymous> (http://code.jquery.com/jquery-1.7.js:1064:30)
at Object.fireWith (http://code.jquery.com/jquery-1.7.js:1182:7)
at Function.ready (http://code.jquery.com/jquery-1.7.js:437:14)
at Object.<anonymous> (http://code.jquery.com/jquery-1.7.js:927:10)
at Function.dispatch (/Users/brad/dev/test/node_modules/jsdom/lib/jsdom/level2/events.js:195:42)
at Object.dispatchEvent (/Users/brad/dev/test/node_modules/jsdom/lib/jsdom/level2/events.js:285:33)
at Object.<anonymous> (/Users/brad/dev/test/node_modules/jsdom/lib/jsdom/level2/html.js:391:12)
at /Users/brad/dev/test/node_modules/jsdom/lib/jsdom/level2/html.js:48:20
at Object.check (/Users/brad/dev/test/node_modules/jsdom/lib/jsdom/level2/html.js:277:11)
I think this is because CSSOM doesn't define a setter for cssText.
The text was updated successfully, but these errors were encountered:
cross posted from jsdom issue: jsdom/jsdom#356
Using the following, I am receiving an error using jQuery 1.7:
test.html
test.js
The error I receive is:
I think this is because CSSOM doesn't define a setter for
cssText
.The text was updated successfully, but these errors were encountered: