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

Allow custom element names with multiple dashes #1

Closed raffecat closed 6 years ago

raffecat commented 6 years ago

Hi taoqf,

I found a problem trying to parse html with custom element names, if the element name has more than one dash in it.

The current HTML spec says a custom element must have at least one dash, but also allows any number of dashes :)

https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name

PR if you want it :)

Andrew.

taoqf commented 6 years ago

Many thanks.