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...
W3C validation web service
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Have you looked on their site?
http://validator.w3c.org for makup and http://jigsaw.w3.org/css-validator/ for CSS.
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
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...
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
-
anthony88guy
- Forum Contributor
- Posts: 246
- Joined: Thu Jan 20, 2005 8:22 pm
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Well, it seems there is a API in the works: http://validator.w3.org/docs/users.html#Outputneophyte wrote:Hockey, so can you do it?
So I would assume something is possible, which is all I needed to know for now