1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

You CAN modify google search box for xhtml compliance

Discussion in 'Placement / Reviews / Examples' started by corinaw, Mar 6, 2006.

  1. #1
    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.
     
    corinaw, Mar 6, 2006 IP
  2. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #2
    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. :(
     
    Will.Spencer, Mar 6, 2006 IP
    clancey likes this.
  3. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    clancey, Mar 6, 2006 IP
  4. Jackson_Hu

    Jackson_Hu Peon

    Messages:
    228
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks for the information .I just think about how to solve the violation to W3C~
     
    Jackson_Hu, Mar 6, 2006 IP
  5. corinaw

    corinaw Not Banned

    Messages:
    486
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    0
    #5

    What is the bgcolor bug?
     
    corinaw, Mar 6, 2006 IP
  6. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #6
    Weird, I just went to test it again and it's gone.

    Maybe I'll lighten up on Google. :)
     
    Will.Spencer, Mar 6, 2006 IP
  7. Jenstar

    Jenstar Active Member

    Messages:
    524
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    68
    #7
    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 ;)
     
    Jenstar, Mar 7, 2006 IP
  8. subway33841

    subway33841 Peon

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    subway33841, Jul 29, 2009 IP
  9. subway33841

    subway33841 Peon

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Hi Corina,

    Would you please tell us how did you contact Google. What is the email address?

    Thanks
     
    subway33841, Jul 29, 2009 IP