Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense doesn't validate

... oh, and your contact form is broken Google!

         

internetheaven

6:12 pm on May 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've tried contacting google but their contact page keeps asking me to enter my email address ... which I already had ...

Basically, all my sites try to be validated. I've just added adsense for search to my pages and they don't validate. The W3C validation tool I use says:

Line 237, character 61:
... value="Google Search"></input>
^Error: end tag for element INPUT which is not open; try removing the end tag or check for improper nesting of elements

Line 239, character 52:
... ame="forid" value="1"></input>
^Error: end tag for element INPUT which is not open; try removing the end tag or check for improper nesting of elements

Line 240, character 63:
... l" value="9568890651735"></input>
^

and so on. Why is this? Has anyone else asked Google?

youfoundjake

8:24 pm on May 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Line 237, character 61:
... value="Google Search"></input>
^Error: end tag for element INPUT which is not open; try removing the end tag or check for improper nesting of elements

Line 239, character 52:
... ame="forid" value="1"></input>
^Error: end tag for element INPUT which is not open; try removing the end tag or check for improper nesting of elements

Line 240, character 63:
... l" value="9568890651735"></input>


What is happening on line 236, 238 and what is the rest of 239? I know that when errors are generated, its usually the line of code before what's listed.
If you want you can sticky me the section of code. Can't help you with google problem though...

internetheaven

9:43 pm on May 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is happening on line 236, 238 and what is the rest of 239?

eh? I'm talking about HTML W3C validation, not scripting debugging. The few lines before and after are all the same, Google search box coding. The error is quite clear as far as I can see, there is no open input tag yet google puts a </input> at the end of every line.

youfoundjake

10:06 pm on May 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



there is no open input tag yet google puts a </input> at the end of every line.

<form method="get" action="http://www.google.com/custom" target="google_window">
<input type="hidden" name="domains" value="www.****.com"></input>
<input type="text" name="q" size="19" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Google Search">
</input>
<br />
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#000000">Them</font>
<input type="radio" name="sitesearch" value="www.****.com"></input>
<font size="-1" color="#000000">Us</font>
<input type="hidden" name="client" value="pub-random set of numbers"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="more random numbers"></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="safe" value="active"></input>
<input type="hidden" name="cof" value="GALT:#confused to protect the innocent"></input>
<input type="hidden" name="hl" value="en"></input>
</form>

all the lines start with input type.
if you want, sticky me the code

celgins

1:13 am on May 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I've used Google's Sitesearch for years and there has always been a W3C-compliant form with opening and closing <input> tags.