@xiee/utils
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -8,3 +8,3 @@ (function() { | ||
// center an image if it is the only element of its parent | ||
if (parent.childNodes.length === 1) { | ||
if (parent.childElementCount === 1) { | ||
// if there is a link on image, check grandparent | ||
@@ -14,4 +14,4 @@ var parentA = parent.nodeName === 'A'; | ||
parent = parent.parentElement; | ||
if (parent.childNodes.length != 1) continue; | ||
parent.firstChild.style.border = 'none'; | ||
if (parent.childElementCount != 1) continue; | ||
parent.firstElementChild.style.border = 'none'; | ||
} | ||
@@ -18,0 +18,0 @@ if (parent.nodeName === 'P') { |
{ | ||
"name": "@xiee/utils", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Miscellaneous tools and utilities to manipulate HTML pages", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
22439