Forum Moderators: phranque

Message Too Old, No Replies

phpAdsNew and W3C Validation

         

Deathspawner

9:02 pm on May 15, 2005 (gmt 0)



I am trying to get my site W3C XHTML validated, but phpAdsNew is making it impossible.

When I tested my template before it went live, without ads, it was XHTML strict. Ever since I added the Advertisements, that went out the window.

If you check that page, you can see that the majority of the problems lie within the Ads.. phpAdsNew doesn't spit out W3C Valid HTML, leaving me with this problem.

Has anyone else had this problem? Can it be fixed? Any help would be appreciated, thanks!

[edited by: trillianjedi at 10:42 am (utc) on May 16, 2005]
[edit reason] No URL drops please as per TOS [/edit]

ZenArcher

3:59 pm on May 17, 2005 (gmt 0)

10+ Year Member



I use phpAdsNew. The code can be generated in a number of different ways, and I'm sure you can get around it. Is the site PHP-generated? Templated? If you sticky me the URL, I'll take a look.

encyclo

5:43 pm on May 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What kind of errors are you getting?

At a guess, you will have at least two issues: unencoded ampersands in URLs - which can be fixed by replacing

&
with
&
(but only if you have control over those URLs), and the frequent use of
target="_blank"
so as to open the target URL in a new window. The latter issue won't validate in XHTML 1.0 Strict but it will do so with XHTML 1.0 Transitional.

If you have third-party markup injected in to a page, it is difficult to assure validation. Neither of the above problems are major, however, and you may well have to compromise absolute validity in order to keep the ads.