Tags: daweih/mark.js
Tags
Implemented new 'acrossElements' option - Implemented new 'acrossElements' option to find matches located across multiple HTML elements (even across iframes) #46 - Huge internal refactoring, including a switch to NodeIterator and implementation of a new class 'DOMIterator' - Matches are now handled in the actual DOM tree order - Ignore duplicate contexts, even contexts within others - Ignore duplicate keywords - Sort array of keywords by length to make sure everything works as expected when having several partially identical keywords #49 - Moved parameter 'counter' of the 'filter' callback of .mark() after 'totalCounter' to be in accordance with .markRegExp() - Due to the internal refactoring mark.js now waites for iframes to be loaded until it starts marking matches (with or without 'acrossElement') – but only if iframes are enabled
Implemented new 'filter' callback option This caused the previously existing option 'filter' to be renamed to 'exclude'. The new 'filter' callback option can be used to filter matches yourself or to limit highlights to a specific amount. Have a look at the documentation for more information.
PreviousNext