Hi all -
This has never been an issue for me until today. However I have a form and Rails is inserting it's hidden authenticity_token field. It wraps it in a div with a style. And doing that messes things up for me CSS wise.
Which got me to thinking about why it's wrapped at all? Hidden fields don't take up any room. Why wrap it in a div which can have some side affects? And if we're going to wrap it, why not at least give it a class so we can target it and set display:none which fixes the problem.
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" />