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

Fails to correctly parse attributes with dot(.) in the name #237

Open Devmond opened 1 year ago

Devmond commented 1 year ago

<b-button v-b-modal.modal-1>Launch demo modal</b-button>

v-b-modal.modal-1 is a vuejs directive. Per vuejs documentation, all vuejs code is valid html...not sure it is true.

The dot is apparently a valid character for an attribute but it fails to correctly handle it, instead it splits it into two attributes v-b-modal and .modal-1. Incidentally the browser's DOMParser doesn't handle it either.

taoqf commented 1 year ago

I am sorry this lib works not correct with vuejs for now, and I have not much time on this.