W3C has an API for their html validator (see http://validator.w3.org/docs/api.html ). But I am confused as to how it is used. I would like to be able to call this as Ajax in jquery and have the information from the validator passed back to me in a variable.
How can I go about doing this?
Thanks
Maybe this is a possible update:
In previous answers and comments only a SOAP API was mentioned, which is however, as described here , outdated.
A possibility to use the new(?) API is described here :
https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.w3.org%2F&out=json
Maybe someone can confirm this.
Unfortunately, you have to set up a proxy to do this due the cross-domain restriction.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.