Tags: oligoform/mark.js
Tags
Ignore special characters in accuracy complementary If special characters follow a word, then they will no longer be included in the highlight. For example with a sentence "(lorem)" and accuracy complementary, the entire sentence including parenthesis was highlighted. Now only "lorem".
Implemented iframesTimeout option In case the load event of an iframe isn't called – e.g. if there's no network connection or the user browses inside the "offline mode" and an iframe has an online "src" – mark.js wasn't able to complete the process for the rest of the site. The now implemented option `iframesTimeout` specifies the maximum ms to wait for a load event. If it's not fired in this time, the iframe will be silently skipped.
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.
PreviousNext