Howdy. I was just curious why the hidden field for form tags using :method => :put or :method => :delete get wrapped with a div with inline styling? It was easy enough for me to get around by just omitting the :method option in the form tag and adding a hidden_field_tag myself but I''m still achingly curious why a hidden field would need a wrapper at all? especially one with hardwired CSS declaring it to be basically invisible. RSL --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
On 9/17/07, Russell Norris <sconds@gmail.com> wrote:> Howdy. I was just curious why the hidden field for form tags using > :method => :put or :method => :delete get wrapped with a div with > inline styling? It was easy enough for me to get around by just > omitting the :method option in the form tag and adding a > hidden_field_tag myself but I''m still achingly curious why a hidden > field would need a wrapper at all? especially one with hardwired CSS > declaring it to be basically invisible.Just W3C compliance. Form input elements must be nested inside a P, DIV, etc... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Yup, [X]HTML 4 Strict does indeed require FORM elements to only contain block-level or SCRIPT elements. Thanks for the quick reply. RSL On 9/17/07, Damian Janowski <damian.janowski@gmail.com> wrote:> > On 9/17/07, Russell Norris <sconds@gmail.com> wrote: > > Howdy. I was just curious why the hidden field for form tags using > > :method => :put or :method => :delete get wrapped with a div with > > inline styling? It was easy enough for me to get around by just > > omitting the :method option in the form tag and adding a > > hidden_field_tag myself but I''m still achingly curious why a hidden > > field would need a wrapper at all? especially one with hardwired CSS > > declaring it to be basically invisible. > > Just W3C compliance. Form input elements must be nested inside a P, DIV, etc... > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---