Page 1 of 1
W3C validation web service
Posted: Thu Aug 17, 2006 6:26 pm
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...
Posted: Thu Aug 17, 2006 6:35 pm
by RobertGonzalez
Posted: Thu Aug 17, 2006 6:39 pm
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...
Posted: Thu Aug 17, 2006 7:09 pm
by alex.barylski
Found what I was looking for
Sorry for being impatient

Posted: Thu Aug 17, 2006 7:15 pm
by neophyte
Hockey, so can you do it?
Posted: Thu Aug 17, 2006 7:16 pm
by anthony88guy
HTML Validator
a developers must.
Posted: Thu Aug 17, 2006 8:11 pm
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.
Posted: Thu Aug 17, 2006 8:20 pm
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
