selection-ranges
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -9,2 +9,6 @@ # Changelog | ||
## 1.2.1 | ||
* `FIX`: ensure `isSelected(el)` supports IE 11 | ||
## 1.2.0 | ||
@@ -11,0 +15,0 @@ |
@@ -50,2 +50,8 @@ 'use strict'; | ||
// IE supports Node#contains for elements only | ||
// thus we ensure we check against an actual Element node | ||
if (isText(focusNode)) { | ||
focusNode = focusNode.parentNode; | ||
} | ||
return el == focusNode || el.contains(focusNode); | ||
@@ -52,0 +58,0 @@ } |
{ | ||
"name": "selection-ranges", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Selection range manipulation for contenteditable elements", | ||
@@ -5,0 +5,0 @@ "main": "index.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
8850
252