We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6cc345 commit 9f50d24Copy full SHA for 9f50d24
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@openstax/highlighter",
3
- "version": "1.16.0",
+ "version": "1.16.1",
4
"main": "dist/index.js",
5
"license": "MIT",
6
"files": [
src/dom.ts
@@ -226,6 +226,7 @@ export default function dom(el: any) {
226
},
227
228
matches(selector: any) {
229
+ if (!el) { return false; }
230
const method = el.matches || el.mozMatchesSelector || el.msMatchesSelector || el.oMatchesSelector || el.webkitMatchesSelector;
231
return (method != null ? method.call(el, selector) : undefined);
232
0 commit comments