>> Can anyone shed some light on why this is the case? If there's no >> good reason it seems like the wrapped div should go away shouldn't >> it? > >> <form action="xxx" method="post"> >> <div style="margin:0;padding:0"><input name="authenticity_token" >> type="hidden" value="xxxxx=" /></div> >> <input id="q" name="q" type="text" /> >> <input src="search.png" type="image" /> >> </form> > > According to (X)HTML specification you cannot have inline elements > inside form, so inputs > must be wrapped in something: fieldset, p or div.
Ah, that would explain it then! Thanks. To anyone else who has issues with this and CSS, check out the below patch. It works great on 2.3.2. Basically I can override the style and set it to display:none or display:inline... https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2044 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

