This project is archived and is in readonly mode.
text_area_tag does not sanitize id value
Reported by Fjan | January 27th, 2009 @ 11:57 AM | in 2.x
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
Comments and changes to this ticket
-
Chris Mear February 20th, 2009 @ 03:35 PM
- Tag set to duplicate
This appears to be a duplicate of #1703.
-
CancelProfileIsBroken April 22nd, 2009 @ 10:08 PM
- State changed from new to duplicate
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Tags
Referenced by
- 2586 2.3.2 text_area_tag doesn't sanitize the id attribute Duplicate of #1703 (and #1802).