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

setAttribute without value #49

Closed TYueksel closed 4 years ago

TYueksel commented 4 years ago

It is not possible to add attributes without values like 'disabled' for html buttons. A workaround like setAttribute("disabled", "") does not work also, since it injects " disabled='' " into the html, which does not disable buttons.

taoqf commented 4 years ago

Thanks for your report.