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

[Feature] add previousElementSibling() (to match existing nextElementSibling() #185

Closed dartanian300 closed 2 years ago

dartanian300 commented 2 years ago

Is there a previousElementSibling()? I see there's a nextElementSibling().

nonara commented 2 years ago

Thanks for the report! Seems that there isn't, but it would make sense to add that.

taoqf commented 2 years ago

try v5.2.2