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

Omits `_` attribute used by Hyperscript #206

Closed codepilotsf closed 1 year ago

codepilotsf commented 2 years ago

In line 690 of nodes/html.ts, the regex disallows attributes starting with an underscore. This makes this lib incompatible with Hyperscript. (https://hyperscript.org). I forked your lib here: https://github.com/codepilotsf/node-html-parser-hyperscript

...but you may want to add the one underscore char to the regex so it works with Hyperscript. :-)

Thanks!

taoqf commented 2 years ago

Thank you very much for your advice. I tried but faild with https://github.com/taoqf/node-html-parser/issues/129