treora

treora/dom-highlight-range

JavaScript
21
5
Other

This library wraps text nodes within a DOM Range with a specified HTML element (defaulting to `<mark>`), breaking nodes as needed to preserve the range's boundaries. It's designed for developers working with text selection and highlighting in web applications, such as those implementing annotation systems or text emphasis features.

Total donated
Undistributed
Share with your subscribers: