user2970037
user2970037

Reputation: 43

How to use the w3c validator API

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

Upvotes: 2

Views: 4028

Answers (2)

skalta
skalta

Reputation: 1422

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.

Upvotes: 7

eRIZ
eRIZ

Reputation: 1507

Unfortunately, you have to set up a proxy to do this due the cross-domain restriction.

How to call SOAP WS from Javascript/jQuery

Upvotes: 0

Related Questions