diff options
Diffstat (limited to 'src/elements/Style.js')
-rw-r--r-- | src/elements/Style.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/Style.js b/src/elements/Style.js index b878189..0b7d952 100644 --- a/src/elements/Style.js +++ b/src/elements/Style.js @@ -19,8 +19,8 @@ function cssRule (selector, rule) { } export default class Style extends Element { - constructor (node) { - super(nodeOrNew('style', node), node) + constructor (node, attrs = node) { + super(nodeOrNew('style', node), attrs) } addText (w = '') { |