jsdom / cssstyle

A Node.js implementation of the CSS Object Model CSSStyleDeclaration interface
MIT License
109 stars 70 forks source link

Setting background to `null` throws #42

Closed domenic closed 8 years ago

domenic commented 8 years ago

See https://github.com/tmpvar/jsdom/issues/1499. Complete jsdom repro:

"use strict";
const jsdom = require("jsdom");

const document = jsdom.jsdom();
document.body.innerHTML = `<div id="ctrl" style="background:#111;border:1px"></div>`;

const div = document.body.firstChild;
div.style.background = null;
chad3814 commented 8 years ago

cssstyle@0.2.35 published with fix