remove id or make it assignable for hidden of form() with method

Issue #43 resolved
Anonymous created an issue

I got duplicate id error in XHTML validation when I have two or more tags.form() with method='put'. The form() adds a hidden field with id _method which is not configurable. So my solution is set id=None at line 104.

    field = hidden("_method", method, id=None)

If someone really needs to have id then please make it assignable through the form()'s argument. Thanks

Comments (2)

  1. Mike Orr

    I originally had no IDs on hidden fields because I didn't think they were useful. Then somebody complained that they wanted IDs and that the hidden helper handled IDs differently than the other helpers. I can make the magic "_method" field default to None I guess.

  2. Log in to comment