Google Site Search in xhtml strict 1.0

Discussion in 'Guidelines / Compliance' started by Riots, Dec 11, 2007.

  1. #1
    Ive had the site search for adsense on my page for a couple of weeks now not thinking about it. But when to just check my page validation and it failed. So I looked at the errors and did a little research and google does not put the site search code in a valid xhtml code. So now my pages come up invalid. Is there any way to modify the code so it passes validation and not violate TOS of adsense ? heres my adsense code..

    <!-- SiteSearch Google -->
    <form method="get" action="http://www.google.com/custom" target="_top">
    <table border="0" bgcolor="#000000">
    <tr><td nowrap="nowrap" valign="top" align="left" height="32">
    <a href="http://www.google.com/">
    <img src="http://www.google.com/logos/Logo_25blk.gif" border="0" alt="Google" align="middle"></img></a>
    </td>
    <td nowrap="nowrap">
    <input type="hidden" name="domains" value="www.Graffintheno.com;forums.Graffintheno.com"></input>
    <label for="sbi" style="display: none">Enter your search terms</label>
    <input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input>
    <label for="sbb" style="display: none">Submit search form</label>
    <input type="submit" name="sa" value="Search" id="sbb"></input>
    </td></tr>
    <tr>
    <td>&nbsp;</td>
    <td nowrap="nowrap">
    <table>
    <tr>
    <td>
    <input type="radio" name="sitesearch" value="" checked id="ss0"></input>
    <label for="ss0" title="Search the Web"><font size="-1" color="#ffffff">Web</font></label></td>
    <td>
    <input type="radio" name="sitesearch" value="www.Graffintheno.com" id="ss1"></input>
    <label for="ss1" title="Search www.Graffintheno.com"><font size="-1" color="#ffffff">www.Graffintheno.com</font></label></td>
    </tr>
    <tr>
    <td>
    <input type="radio" name="sitesearch" value="forums.Graffintheno.com" id="ss2"></input>
    <label for="ss2" title="Search forums.Graffintheno.com"><font size="-1" color="#ffffff">forums.Graffintheno.com</font></label></td>
    <td></td>
    </tr>
    </table>
    <input type="hidden" name="client" value="pub-8540775669827915"></input>
    <input type="hidden" name="forid" value="1"></input>
    <input type="hidden" name="channel" value="2783359413"></input>
    <input type="hidden" name="ie" value="ISO-8859-1"></input>
    <input type="hidden" name="oe" value="ISO-8859-1"></input>
    <input type="hidden" name="cof" value="GALT:#FFFFFF;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:000000;LBGC:000000;ALC:E1771E;LC:E1771E;T:FFFFFF;GFNT:E1771E;GIMP:E1771E;LH:50;LW:225;L:http://graffintheno.com/images/img01.jpg;S:http://;FORID:1"></input>
    <input type="hidden" name="hl" value="en"></input>
    </td></tr></table>
    </form>
    <!-- SiteSearch Google -->
    Code (markup):

     
    Riots, Dec 11, 2007 IP
  2. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #2
    What is the direct link to the site\page your trying to validate?
     
    astup1didiot, Dec 11, 2007 IP
  3. Riots

    Riots Active Member

    Messages:
    374
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    83
    #3
    its in my signature but i just removed the search. and my page validates fine without it. But I do want the search there but too pass and not violate the TOS ..
     
    Riots, Dec 11, 2007 IP