spyysalo / annodoc

Annodoc annotation documentation support system
http://spyysalo.github.io/annodoc
MIT License
35 stars 57 forks source link

auto-linking should check for empty `name` in addition to `id` #6

Closed spyysalo closed 10 years ago

spyysalo commented 10 years ago

Per title, otherwise anchors like <a name="foo">...</a> would be subject to auto-linking.

See http://stackoverflow.com/a/484781 for more information.

(To be sure that other similar cases don't occur later, perhaps it would be best to whitelist -- e.g. only allow class -- instead of blacklisting?)

spyysalo commented 10 years ago

Fixed in bff56ec1243208b5fccdc6387902258decf315fb