Is it possible to get the details of attributes?

This issue has been tracked since 2021-08-03.

htmlparser2 demo
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?

fb55 wrote this answer on 2021-08-27

#929 makes it possible to track attribute indices. You will have to provide a custom handler to actually store this; have a look at for the current handler implementation. You can extend the current handler class, with an updated onattribute method that sets indices as expected.

More Details About Repo
Owner Name fb55
Repo Name htmlparser2
Full Name fb55/htmlparser2
Language TypeScript
Created Date 2011-08-27
Updated Date 2023-03-19
Star Count 3793
Watcher Count 50
Fork Count 370
Issue Count 4


Issue Title Created Date Updated Date