taoqf / node-html-parser

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

Possibility to get Elements by Classname #278

Closed wjanes closed 1 month ago

wjanes commented 1 month ago

Hi Is it possible to get elements by class name? I have only found a method to find elements by tag name or find an element by id!

BR Wolfgang

hakimio commented 1 month ago

https://github.com/taoqf/node-html-parser?tab=readme-ov-file#queryselectorallselector

Note: Full range of CSS3 selectors supported since v3.0.0.

wjanes commented 1 month ago

Ok thanks