Skip Menu |

This queue is for tickets about the WebService-Validator-HTML-W3C CPAN distribution.

Report information
The Basics
Id: 5217
Status: resolved
Priority: 0/
Queue: WebService-Validator-HTML-W3C

People
Owner: struan [...] cpan.org
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.02
Fixed in: (no value)



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.
Date: Thu, 12 Feb 2004 12:31:55 +0000
From: Struan Donald <struan [...] exo.org.uk>
To: Guest via RT <bug-WebService-Validator-HTML-W3C [...] rt.cpan.org>
Subject: Re: [cpan #5217] wish: support for validating scalar refs
RT-Send-Cc:
* at 05/02 14:19 -0500 Guest via RT said: Show quoted text
> > This message about WebService-Validator-HTML-W3C was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=5217 > > > 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.
It's on the TODO list. It's just a matter of me getting round to it. Show quoted text
> 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.
Er, I'm not sure I understand your point. If you really want to do it locally then HTML::Validator might be what you want: http://search.cpan.org/~sait/HTML-Validator-0.13/Validator.pm.in Thanks Struan