tl;dr
Download the code. Use $.validateHTML5(callback)
, where callback (result, data)
is a function that is called with the result
, a string that can be "valid"
if the page validated, "invalid"
if it did not, "warning"
if it validated but is "in some way questionable", or "not validated"
if some error occurred. data
is the actual JSON
output from the validator.