Skip to content

Releases: angezid/advanced-mark.js

Version 2.6.0

04 May 16:21
Compare
Choose a tag to compare
  • Added ability to mark inside iframes in shadow DOM.
  • Changed the way to truck iframes states (dropped using attribute).
  • Added ability to use HTMLCollection (returned by 'getElementsByClassName()' and 'getElementsByTagName()').

Version 2.5.0

07 Apr 10:58
Compare
Choose a tag to compare
  • Added ability to select iframe elements when using non-jQuery libraries and iframe elements are dynamically created by javascript.
  • Fixed multiple wrapping of highlighted text in mark elements that can occur on some conditions with iframes option (page contains several iframes and selecting several contexts). Previous 2.x.x versions correctly handle only one context.
  • Fixed bug that is related to old browsers in DOMIterator class, e.g. IE11. (introduced in v2.4.1)

Version 2.4.2

26 Mar 11:43
Compare
Choose a tag to compare
  • Fixed bug that occurs in markRanges() API then an array of ranges have a single item and a range start property is zero.

Version 2.4.1

20 Nov 07:38
Compare
Choose a tag to compare
  • Fixed infinite loop that can occur with ignoreGroups option in markRegExp() API with the conditional main group.
  • Fixed missing window object of the Node interface (causes an exception in virtual DOM environments when context is an array of elements).

Version 2.4.0

14 Nov 17:06
Compare
Choose a tag to compare
  • Fixed handling escaped wildcards characters (backslashes were stripped from searching string, e.g. 'C:\\\\*' resulted in 'C:\\*' and is treated as escape '*', not a wildcard)
  • Fixed breaking UTF-16 surrogate pairs and continues pairs of backslashes by joiners/punctuation
  • Slightly reduce a code size

Version 2.3.0

10 Oct 15:06
Compare
Choose a tag to compare
  • Added preserveTerms value for separateWordSearch option that allows highlight exact term(s) alone side with separate word(s).
  • Added 'startsWith' value for accuracy option that allows highlight whole word(s) just typing the start of it(s). It also works with preserveTerms.

Version 2.2.0

12 Sep 15:32
Compare
Choose a tag to compare
  • Added ability to mark line ranges (markRanges() API with markLines option).
  • Fixed handling br element in getTextNodesAcross() method.
  • Fixed negative value of the start index in wrapRangeAcross() method with wrapAllRanges option, which can occur in some cases.
  • An improvement that allows usage of RegExp conditional capturing groups with ignoreGroups option in markRegExp() API.

Version 2.1.2

29 May 02:37
Compare
Choose a tag to compare
  • Fixed problem with 'jquery.mark.es6.js' module by adding node.jquery.mark.es6.js module, which contains import $ from 'jquery'; statement necessary on Node.js.
  • Added missing őŐűŰ diacritic characters in RegExpCreator class.

Version 1.1.2

15 Apr 08:48
Compare
Choose a tag to compare
  • Fixed bug related using a wildcards character * with wildcards : 'withSpaces', acrossElements , and blockElementBoundary options.
  • Fixed types path in package.json.

Version 2.1.1

15 Apr 04:44
Compare
Choose a tag to compare
  • Fixed debug logging to the console
  • Improved detection of custom window object and as a result getting clear error message