I''m trying to get a page to validate as XHTML Strict, and I''ve gotten everything fixed except for one <textarea> that Rails is generating. <textarea cols="40" id="estcomment_comment" name="estcomment[comment]" rows="10" wrap="virtual"></textarea> This tag is being called in my view with <%= text_area("estcomment", "comment", "cols" => 40, "rows" => 10) %> Is there any way to force Rails to output code without the extraneous "wrap" attribute? -- Nathan Wright http://www.brandalism.com
I would like to know this as well. Perhaps it is a bug? Regards, Lars Am 31.03.2005 um 02:28 schrieb Nathan Wright:> I''m trying to get a page to validate as XHTML Strict, and I''ve gotten > everything fixed except for one <textarea> that Rails is generating. > > <textarea cols="40" id="estcomment_comment" > name="estcomment[comment]" rows="10" wrap="virtual"></textarea> > > This tag is being called in my view with > > <%= text_area("estcomment", "comment", "cols" => 40, "rows" => 10) %> > > Is there any way to force Rails to output code without the extraneous > "wrap" attribute? > > -- > Nathan Wright > http://www.brandalism.com > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >-- "Stil ist die Fähigkeit, komplizierte Dinge einfach zu sagen - nicht umgekehrt." -- Cocteau, Jean
On 31.3.2005, at 10:05, Lars Hoss wrote:> I would like to know this as well. Perhaps it is a bug?What''s the purpose of that attribute? Does it play an important role anywhere? I think you''d get the fastest fix by filing a bug and a patch for it. //jarkko> > Regards, > Lars > > Am 31.03.2005 um 02:28 schrieb Nathan Wright: > >> I''m trying to get a page to validate as XHTML Strict, and I''ve gotten >> everything fixed except for one <textarea> that Rails is generating. >> >> <textarea cols="40" id="estcomment_comment" >> name="estcomment[comment]" rows="10" wrap="virtual"></textarea> >> >> This tag is being called in my view with >> >> <%= text_area("estcomment", "comment", "cols" => 40, "rows" => 10) >> %> >> >> Is there any way to force Rails to output code without the extraneous >> "wrap" attribute? >> >> -- >> Nathan Wright >> http://www.brandalism.com >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> > -- > "Stil ist die Fähigkeit, komplizierte Dinge einfach zu sagen - nicht > umgekehrt." -- Cocteau, Jean > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Jarkko Laine http://jlaine.net http://odesign.fi _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
> What''s the purpose of that attribute? Does it play an important role > anywhere? I think you''d get the fastest fix by filing a bug and a patch > for it.I have a dim memory that it is required for Netscape 4 to wrap textareas correctly. Hadley
Netscape 4? What on earth is that? Thou shalt not speak of such evil! Rails is such a breath of fresh air, there is no need to look back at such outdated and totally non-compliant browsers such as NS4. If it works in atleast NS6+, then its good enough. I say make it xhtml strict or make it an option to manually add the wrap attribute. Just my $0.02 On Thu, 31 Mar 2005 07:59:44 -0600, hadley wickham <h.wickham-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > What''s the purpose of that attribute? Does it play an important role > > anywhere? I think you''d get the fastest fix by filing a bug and a patch > > for it. > > I have a dim memory that it is required for Netscape 4 to wrap > textareas correctly. > > Hadley > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- - Ramin
On Mar 31, 2005 8:40 AM, Ramin <i8ramin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Netscape 4? What on earth is that? Thou shalt not speak of such evil! > > Rails is such a breath of fresh air, there is no need to look back at > such outdated and totally non-compliant browsers such as NS4. If it > works in atleast NS6+, then its good enough. I say make it xhtml > strict or make it an option to manually add the wrap attribute. Just > my $0.02I ran into an issue where the javascript asset helper was adding a language="javascript", another XHTML boo boo. If it is indeed in the helper method, I''ll submit a patch. If no one else has, I''ll do the same for the text area. Though, looking at the code, it looks like it''s generated in ActiveRecord::Base rather than the helper itself: http://rails.rubyonrails.com/classes/ActionView/Helpers/FormHelper.html#M000317 -- rick http://techno-weenie.net