[imps] Static xhtml5 analysis with validator.nu
Henri Sivonen
hsivonen at iki.fi
Tue Jan 15 05:38:10 PST 2013
On Tue, Jan 15, 2013 at 2:08 PM, Javier Pavón Cabrera
<javier.pavon at scytl.com> wrote:
> At our company we are trying check files for html5 polyglot conformance,
What’s your use case for checking for polyglot conformance? That is,
why do you care about polyglot instead of caring about either HTML or
XHTML?
> But, after trying this for some hours it is not clear if this is possible,
> since it seems the validation process is very coupled to a servlet (and
> request, response). So my question is: do you think it is reasonable to try
> to use validator.nu in this way? And if so, could you please give some
> indications on how to achieve it?
The best bet is to create a holder for VerifierServletTransaction and
pass a mock ServelRequest/Response pair to it.
Looks like someone has already made one:
https://bitbucket.org/pfalcon/validator/commits/72665dd717629f4ed5c82917f2b72e0682388e43
--
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/
More information about the Implementors
mailing list