Would it be possible to add position information, i.e. line+column to text nodes? Or, at least make this information available to the tree builder? I implemented a very minimal proof of concept to add the information to each token and pass that along to the dom tree builder and obtain the following result: ``` import html5lib html = '&bc cab' parser = html5lib.HTMLParser(tree=html5lib.getTreeBuilder("dom")) doc = parser.parse(html) def parse(n): for c in n.childNodes: if hasattr(c, 'sourcepos'): print(c.sourcepos, c) parse(c) parse(doc) ``` ``` None None (1, 5) (1, 10) (1, 13) (1, 14) (1, 20) (1, 21) (1, 33) (1, 36) ``` I would be willing to implement it.