W3C validation web service

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

W3C validation web service

Post by alex.barylski »

Anyone know if I can test a web page/HTML/XHTML against a DOCTYPE programmatically using the W3C validation service?

What I mean is, I know it's technically possible using either JS or PHP but does W3C allow this or do they have an API or something???

API would be ideal, as I wouldn't have to parse their results, etc...but I don't mind hacking away for ages...
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Have you looked on their site?

http://validator.w3c.org for makup and http://jigsaw.w3.org/css-validator/ for CSS.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Yes sir, I have...

Do you mean have I searched for a document which explains the legalities of using the results in an application? Basically I want to test code against their actual service instead of writing my own validation...so I only need a little red light and green light to indicate W3C validation or not...not the whole thing...besides sometimes it may only be a small portion of HTML I need tested :)

So I wanted to do it programatically...which is technically possible, I would think, as they don't require a captcha or anything, so I could make the same request using get or post in JS or PHP...
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Found what I was looking for :P

Sorry for being impatient :)
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

Hockey, so can you do it?
anthony88guy
Forum Contributor
Posts: 246
Joined: Thu Jan 20, 2005 8:22 pm

Post by anthony88guy »

HTML Validator

a developers must.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Hockey wrote:Do you mean have I searched for a document which explains the legalities of using the results in an application?
Actually I was wondering if you looked around for an API. I should have been more specific. But since you got it figured out, nevermind. God job.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

neophyte wrote:Hockey, so can you do it?
Well, it seems there is a API in the works: http://validator.w3.org/docs/users.html#Output

So I would assume something is possible, which is all I needed to know for now :P
Post Reply