Skip to content

Commit

Permalink
[htmlparser2] add 'endIndex' to 'locationProps' (#705)
Browse files Browse the repository at this point in the history
Hide Location Data should hide this prop as well. (Note its use in nodeToRange)
  • Loading branch information
vassudanagunta authored Feb 1, 2024
1 parent d2e776a commit bc25477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/parsers/html/htmlparser2.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
displayName: ID,
version: pkg.version,
homepage: pkg.homepage || 'https://github.com/fb55/htmlparser2',
locationProps: new Set(['startIndex']),
locationProps: new Set(['startIndex', 'endIndex']),
typeProps: new Set(['type', 'name']),

loadParser(callback) {
Expand Down

0 comments on commit bc25477

Please sign in to comment.