@emmetio/node
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -15,3 +15,3 @@ 'use strict'; | ||
this.name = name; | ||
this.value = value || null; | ||
this.value = value != null ? value : null; | ||
this.options = options || {}; | ||
@@ -255,3 +255,6 @@ } | ||
token = normalize(token); | ||
if (token && !this.hasClass(token)) { | ||
if (!this.hasAttribute('class')) { | ||
this.setAttribute('class', token); | ||
} else if (token && !this.hasClass(token)) { | ||
this.setAttribute('class', this.classList.concat(token).join(' ')); | ||
@@ -258,0 +261,0 @@ } |
@@ -13,3 +13,3 @@ /** | ||
this.name = name; | ||
this.value = value || null; | ||
this.value = value != null ? value : null; | ||
this.options = options || {}; | ||
@@ -253,3 +253,6 @@ } | ||
token = normalize(token); | ||
if (token && !this.hasClass(token)) { | ||
if (!this.hasAttribute('class')) { | ||
this.setAttribute('class', token); | ||
} else if (token && !this.hasClass(token)) { | ||
this.setAttribute('class', this.classList.concat(token).join(' ')); | ||
@@ -256,0 +259,0 @@ } |
{ | ||
"name": "@emmetio/node", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Emmet abbreviation node", | ||
@@ -5,0 +5,0 @@ "main": "dist/node.cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22846
831