@danielgindi/dom-utils 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.cjs.js +329 -4846
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +2 -2
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +3 -4
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +2 -2
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +977 -5494
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +2 -2
- package/dist/lib.umd.min.js.map +1 -1
- package/eslint.config.mjs +136 -0
- package/lib/DomCompat.js +2 -3
- package/package.json +14 -13
package/dist/lib.es6.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/dom-utils 1.0.
|
|
2
|
+
* @danielgindi/dom-utils 1.0.9
|
|
3
3
|
* git://github.com/danielgindi/dom-utils.git
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -616,8 +616,7 @@ const remove = function (el) {
|
|
|
616
616
|
|
|
617
617
|
if ('remove' in el)
|
|
618
618
|
el.remove();
|
|
619
|
-
|
|
620
|
-
if (el.parentNode)
|
|
619
|
+
else if (el.parentNode)
|
|
621
620
|
el.parentNode.removeChild(el);
|
|
622
621
|
};
|
|
623
622
|
|
|
@@ -750,7 +749,7 @@ const detectScopedSelectorFeature = () => {
|
|
|
750
749
|
try {
|
|
751
750
|
document.createElement('div').querySelector(':scope > div');
|
|
752
751
|
hasScopedQuerySelector = true;
|
|
753
|
-
} catch (
|
|
752
|
+
} catch (ignored) {
|
|
754
753
|
hasScopedQuerySelector = false;
|
|
755
754
|
}
|
|
756
755
|
};
|