Subject: | wish: support for validating scalar refs |
Hello,
Thanks for releasing this. I like it because it allows me to get the same resutls that I do when validating websites against the W3C validator. I'd like to use it as part of automated website development testing system. As part of this, I'd like dynamically generated content to be validated just before it is sent to the browser.
I'm modeling what I'm doing after Sam Tregar's hack with a different validation module:
http://use.perl.org/~samtregar/journal/12793
So here's my wish: I believe for this module to work well for this kind of case, the "validate()" method needs to extended to also support validating scalarrefs, so Perl data can be passed in directly.
Perhaps your module could take advantage of the W3C validator's file upload feature to ultimately deliver the content.
In the long term, it seems like it will be much easier to work with if the validation is handled locally, rather than passing it to a web server and getting a response.