weavejester / hiccup

Fast library for rendering HTML in Clojure
http://weavejester.github.io/hiccup
Eclipse Public License 1.0
2.68k stars 174 forks source link

Multiple form-to with non GET or POST action leads to non unique IDs. #109

Open mvitz opened 9 years ago

mvitz commented 9 years ago

We are currently using multiple forms with DELETE action on a single page. These forms are generated with: (form-to [:delete "/route"])

This generates a hidden field with id=_method for each form but HTML requires that any ID must be unique on the complete page.

Ring works even when the input field contains only a name=_method.

mvitz commented 9 years ago

Any thoughts on this? If it is acceptable for you to not generate an ID for the hidden _method field I would create a PR.