Tags: sadikr/mark.js
Tags
Allow marks in already marked elements Due to a behavior described in #95 it wasn't possible to allow marks inside already marked matches. But since v8.0.0 implemented the "acrossElements" option it's now possible to safely wrap matches even in already wrapped matches. You only need to use the "acrossElements" option if you want to mark a match where an already marked keyword is included in the search term, for example if you mark "test" and later "lorem test". Otherwise it won't be found.
Improved .unmark() performance By changing the internal handling of callbacks and by only using the custom DOM normalize method in IE browsers. This method – introduced in v8.4.1 – was necessary to workaround a IE bug (see #88), but caused slowness in all browsers.
Implemented workaround for IE11 DOM normalize() bug Workaround for an ignored IE11 bug: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8727426/ Read more in #88 and #64