bwrrp / slimdom.js

Fast, tiny, standards-compliant XML DOM implementation for node and the browser
MIT License
30 stars 8 forks source link

Add optional way to track positions in parser #148

Open bwrrp opened 10 months ago

bwrrp commented 10 months ago

For some applications it would be helpful to have a way to map a given node back to its corresponding span(s) in the source XML. We could add an optional map argument to the parse options that can be populated with a mapping of nodes to such position information.

TODO: