I sent a mail to google asking for a solution as adding the search box to my xhtml code "breaks" validation. Good news, the do allow you to modify the search box to correct validation issues. The specific instructions are below in the email I received. ---------------------------------------------------------------- Hello Corina, We do allow modification of our code to comply with W3C HTML and XHTML standards. In order to make your code compliant, you'll need to make the following changes to the AdSense for search code: 1. Remove the closing </input> and </image> tags 2. Add an additional closing '/' to the end of the opening html tags for <input> and <image>. This should occur for all 'image' and 'input' tags. For example, this is an unmodified portion of the AdSense for search code: <img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a> <input type="hidden" name="oe" value="ISO-8859-1"></input> This version is modified as described above: <img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle" /></a> <input type="hidden" name="oe" value="ISO-8859-1" /> Please note that the AdSense for search code may only be modified as specified above. Our program policies do not permit any additional modifications. We appreciate your understanding. For additional questions, we suggest you visit our AdSense Support site at https://www.google.com/support/adsense . If you're unable to find an answer to your question on our site, please feel free to reply to this email.
Wow -- if they know that much, I wonder why they don't fix the version they distribute? I also wonder why they don't fix the bgcolor bugs in their AdSense for Search code.
Excellent point. It is surprising that Google would not distribute compliant HTML mark-up by default. Or, at a minimum, let you choose a standards compliant version over the old, non-compliant one.
Do note that even if they give one person permission to do it, you would still need to contact the AdSense team to get permission to change it yourself, or else you might rack up a policy violation warning
Hi, You may see more explanation from Google regarding your question. https://www.google.com/adsense/support/bin/answer.py?hl=en&answer=95885 its under Adsense Help. Thanks