Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Highlight special
onclosetag
logic for p
and br
`Parser.ts` has special `onclosetag` logic for [`p`](https://github.com/fb55/htmlparser2/blob/6445c32b05dc070049eeaaf201bfc123daca3d37/src/Parser.ts#L336) and [`br`](https://github.com/fb55/htmlparser2/blob/6445c32b05dc070049eeaaf201bfc123daca3d37/src/Parser.ts#L340) tags. The updated tests in PR fb55#1046 were unable to expose any behavioral differences, despite the different code paths taken by the existing special logic. So I decided it would be best to at least to clarify with an update to the existing comment in the code, as well as by using the literal values 'p' and 'br' instead of the variable `name` (which is guaranteed to have those values).
- Loading branch information