@domql/element
Advanced tools
Comparing version 2.5.102 to 2.5.103
@@ -34,3 +34,3 @@ "use strict"; | ||
const val = (0, import_utils.exec)(params[attr], element); | ||
if ((0, import_utils.isDefined)(val) && node.setAttribute) | ||
if ((0, import_utils.isDefined)(val) && !(0, import_utils.isNull)(val) && node.setAttribute) | ||
node.setAttribute(attr, val); | ||
@@ -37,0 +37,0 @@ else if (node.removeAttribute) |
'use strict' | ||
import { exec, isNot, isDefined } from '@domql/utils' | ||
import { exec, isNot, isDefined, isNull } from '@domql/utils' | ||
import { report } from '@domql/report' | ||
@@ -17,3 +17,3 @@ | ||
// if (__attr[attr] === val) return | ||
if (isDefined(val) && node.setAttribute) node.setAttribute(attr, val) | ||
if (isDefined(val) && !isNull(val) && node.setAttribute) node.setAttribute(attr, val) | ||
else if (node.removeAttribute) node.removeAttribute(attr) | ||
@@ -20,0 +20,0 @@ __attr[attr] = val |
{ | ||
"name": "@domql/element", | ||
"version": "2.5.102", | ||
"version": "2.5.103", | ||
"license": "MIT", | ||
@@ -34,3 +34,3 @@ "type": "module", | ||
}, | ||
"gitHead": "9f0516bbf6310b86c6d78f6bb0bfd3bf3347469b", | ||
"gitHead": "ea84723f30fae3a15aabde75c2d3a719b7088baf", | ||
"devDependencies": { | ||
@@ -37,0 +37,0 @@ "@babel/core": "^7.12.0" |
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
187570