Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

text_area_tag does not sanitize id value

#1802

The text_area_tag helper is the only tag helper that does not sanitize the name value that goes into the id field, leading to invalid XHTML when called like so: text_area_tag("test[1]") =>

All the other xxx_tag helpers sanitize the value correctly to become id="test_1".

It's a an easy fix, text_area_tag is simply missing a call to sanitize_to_id(name) that should be put on line 260 of form_tag_helper.rb

Reported by Fjan · January 27th, 2009 @ 11:57 AM

State: duplicate
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Chris Mear
    Chris Mear
    • Tag set to duplicate

    This appears to be a duplicate of #1703 text_area_tag sanitize_to_id.

    February 20th, 2009 @ 03:35 PM

  2. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from new to duplicate

    April 22nd, 2009 @ 10:08 PM