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

nextElement #41

Closed smmaxim1987 closed 3 years ago

smmaxim1987 commented 4 years ago

Good night!

Thanks you for create work!

Not work next element find :(

Example html.querySelector('.pages .num span + a'); tag + tag = next element or for example found one element and want next element element1 and element1.nextElementSibling = null

taoqf commented 4 years ago

Yes, it is not supported for now. pr is welcomed.

niftylettuce commented 4 years ago

👍

taoqf commented 4 years ago

https://github.com/taoqf/node-html-parser/commit/d1cd9a7c38f9a1bb8c1ac7980c1e692479329a36

taoqf commented 4 years ago

v1.4.8