This project is archived and is in readonly mode.

#1802 ✓duplicate

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

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=""></a>

People watching this ticket


Referenced by