The validator at jigsaw.w3.org is the CSS validator, not an XHTML validator. Please post a URL to an example page.
Main Topics
Browse All TopicsExperienced strange behaviour with the w3c validator, it would not accept php parameters being used within files outputing data in within the <head></head> tags. For example, using code that has been validated fine on other servers, using the code below caused the validator to think that the <head> tag was not closed. Both the constants and parameter were correctly define and the site was working. I feel sure it must be something to do with the server environment.
Anyone else had such experiences? The server is a LAMP.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I've temporarily removed th footer which was causing errors. Then if I remove a menu with <ul> and <li> tags the page validates. In analysing the menu I find that a sql query is causing 22 spurious validation errors eg:
end tag for "br" omitted, but OMITTAG NO was specified
& 1 ORDER BY i.v_order' at line 1<br><br>SELECT i.information_id, i.page_url,
The query works fine on the database, and how can a Php/Mysql query effect the validator?
This is *STRANGE*! I'm testing the php page in the W3C validator for xhtml transitional. In my code I have a Php variable in a query eg:
"select * from sometable where id = " . $id . " order by somefield";
and the W3c validator fails.
Ok so I change the sql code to:
"select * from sometable where id = '" . $id . "' order by somefield";
and the W3c validator passes.
I've added single quotes around the parameter to get a pass, but the value is an integer, and in any case why should it be effecting xhtml validation - it's server side code!
Business Accounts
Answer for Membership
by: ncwPosted on 2009-05-27 at 15:00:05ID: 24487994
I've found that the validator at jigsaw.w3.org validates the site as xhtml transitional with no errors (only css warnings), whereas the validator at validator.w3.org is showing 31 errors and in the code where it's highlighting the error it's also showing some sql code which it shouldn't be seeing!
The validator at validome.org also returned similar spurious errors.