Get the line number of line that is currently being parsed

This issue has been tracked since 2022-10-28.

I wonder if it would be possible to get the number of the line that is currently being parsed.
This way one can throw custom syntax errors like:

throw new Error(`Invalid element 'slot' inside div at line ${lineNumber}`);
fb55 wrote this answer on 2022-11-02

That's very possible, but requires a bit of additional code on your side; see #919

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

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date