We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
hast-to-hyperscript
1 parent d753ed9 commit f0e9767Copy full SHA for f0e9767
index.js
@@ -75,6 +75,11 @@ function element(node, schema) {
75
for (key in attrs) {
76
info = find(schema, key)
77
attr = attrs[key]
78
+
79
+ if (attr === false || (info.boolean && !attr)) {
80
+ continue
81
+ }
82
83
value = {name: key, value: attr === true ? '' : String(attr)}
84
85
if (info.space && ignoredSpaces.indexOf(info.space) === -1) {
package.json
@@ -19,7 +19,7 @@
19
"index.js"
20
],
21
"dependencies": {
22
- "hast-to-hyperscript": "^6.0.0",
+ "hast-to-hyperscript": "^7.0.0",
23
"property-information": "^5.0.0",
24
"web-namespaces": "^1.0.0",
25
"xtend": "^4.0.1",
0 commit comments