Track index values from parser

Dependent on https://github.com/fb55/htmlparser2/pull/76