hyntax parser demo
In Hyntax, we can get the detailed information of the attribute (startIndex, etc.), but htmlparser2 simply outputs the key-value
Will htmlparser2 support this feature in the future?
#929 makes it possible to track attribute indices. You will have to provide a custom handler to actually store this; have a look at https://github.com/fb55/domhandler/blob/master/src/index.ts for the current handler implementation. You can extend the current handler class, with an updated
onattribute method that sets indices as expected.
|Issue Title||Created Date||Updated Date|