Adsense not valid w3 code?

Discussion in 'AdSense' started by wholesalechecklist, Aug 15, 2007.

  1. #1
    I used the w3 validator on one of my sites, and it seems like almost all of the errors that it found were from the Google Adsense code. Whats the deal with that?
     
    wholesalechecklist, Aug 15, 2007 IP
  2. sogastic

    sogastic Peon

    Messages:
    202
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well I'm not totally sure but if you used xhtml validator then it can't validate your javascript (I think adsense is javascript ?). It validates only your html.
     
    sogastic, Aug 15, 2007 IP
  3. djrishi

    djrishi Well-Known Member

    Messages:
    1,243
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    100
    #3
    don't worry about w3 validation. as long your site is user friendly, its okie.
     
    djrishi, Aug 15, 2007 IP
  4. sogastic

    sogastic Peon

    Messages:
    202
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    if there are some error on the page with w3 validator, site can not work properly on different browsers.
     
    sogastic, Aug 16, 2007 IP
  5. rickvb

    rickvb Active Member

    Messages:
    157
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #5
    W3C Validation should be taken with a grain of salt. I've seen many sites having 50 + errors and working perfectly the same in browsers. ie Google has been optimized to be as little KB as possible, and has alot of errors because of that.
     
    rickvb, Aug 16, 2007 IP
  6. Trapped

    Trapped Well-Known Member

    Messages:
    1,832
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    130
    #6
    W3C validator validates XHTML/HTML code, and adsense is pure javascript. I doubt thats what breaks your validation. I would rather say check if you have doctype at the very beginning of your code.
     
    Trapped, Aug 16, 2007 IP
  7. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #7
    Take a short look at this link. Why would a page with less than 20 words on, and an image be left with 50 errors? And it's still one of the most visited websites. Is it ignoring the v3 stuff? Does the website look bad in your browser? Just asking :rolleyes:
     
    Clive, Aug 16, 2007 IP
  8. Trapped

    Trapped Well-Known Member

    Messages:
    1,832
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    130
    #8
    and
    If you see the source code it does not have a doctype, adding a doctype it will determine the parse mode and it will validate.
     
    Trapped, Aug 16, 2007 IP
  9. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #9
    I know I was just pointing to Google's ignorance. Their business starts at www.google.com and the v3 trend does not seem to be affecting google in any way.
     
    Clive, Aug 16, 2007 IP