-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include node locations for HTML in connector-jsdom
#1289
Comments
This depends on us updating to the latest API (#163), correct? |
Yes, I don’t think this was an option on the old API (though I could be wrong). |
Really? How did I miss that 😱 |
I should note the location information doesn't yet flow all the way to the hints in production. I have a commit on the vscode extension PR that updates the IAsyncHTMLElement and JSDOMAsyncHTMLElement types to expose this: 1db7fa1 I can put this in a separate PR if we want. |
Yep :) I have added the option in the v12 PR #1274 |
This allows providing accurate line/col information for elements HTML even when other elements have been dynamically inserted/removed nearby. It is done by setting
includeNodeLocations: true
in the options passed tonew JSDOM()
and is already utilized in the newparser-html
(PR #1277).The text was updated successfully, but these errors were encountered: