Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 392 Bytes

README.md

File metadata and controls

6 lines (4 loc) · 392 Bytes

dom-text-mapper

A JavaScript library for mapping sub-strings of the string representation of an HTML document to individual DOM elements

The code traverses the DOM, and compares it to the text string what we get when the document is rendered, and collects info about which string slice belonds to each DOM elements.

Then it can provide mapping between string slices and DOM elements.