CSSOM
CSSOM copied to clipboard
Expose `parse` to `CSSGroupingRule`
CSSGroupingRule.insertRule
requires parse
. Previously:
$ pwd
/path/to/CSSOM
$ node
Welcome to Node.js v18.1.0.
Type ".help" for more information.
> const CSSOM = require('./lib');
undefined
> const rule = new CSSOM.CSSGroupingRule();
undefined
> rule.insertRule('#a{}', 0);
Uncaught TypeError: CSSOM.parse is not a function
at CSSGroupingRule.insertRule (/path/to/CSSOM/lib/CSSGroupingRule.js:41:22)
Now:
> rule.insertRule('#a{}', 0);
0
D'oh, I somehow didn't see https://github.com/NV/CSSOM/pull/113, which does the same thing as this.