ChrisWren / grunt-link-checker

Run node-simple-crawler to discover broken links on your website
MIT License
33 stars 9 forks source link

Add support for . in anchors #33

Closed greggman closed 8 years ago

greggman commented 8 years ago

It's valid to have . in an anchor. Example:

<a href="#.foo"></a>
<a id=".foo"></a>

But it's not valid to use #.foo as a selector. The solution is to escape the ..

See http://stackoverflow.com/questions/35980786/why-is-id-a-bad-selector-in-css-jquery-yet-it-works-in-an-html-anchor