taoqf / node-html-parser

A very fast HTML parser, generating a simplified DOM, with basic element query support.
MIT License
1.12k stars 112 forks source link

nextElementSibling returns an HTMLElement #118

Closed hugmanrique closed 3 years ago

hugmanrique commented 3 years ago

The purpose of nextElementSibling is to return an HTMLElement, not any kind of Node (DOM standard). The .tsconfig disables strict null-checking, so I forgo adding the null return type.

taoqf commented 3 years ago

https://github.com/taoqf/node-html-parser/releases/tag/v3.3.3