Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Highlight special close-implies-open logic for
p
and br
Only </p> and </br> close tags result in implied open tags: - [`p`](https://github.com/fb55/htmlparser2/blob/6445c32b05dc070049eeaaf201bfc123daca3d37/src/Parser.ts#L336) - [`br`](https://github.com/fb55/htmlparser2/blob/6445c32b05dc070049eeaaf201bfc123daca3d37/src/Parser.ts#L340) tags. This commit clarifies this in the existing comments. It also makes the special case nature of this more apparent by using the literal values 'p' and 'br' instead of the variable `name`, which is proven to have these values. This is less obfuscating.
- Loading branch information