Re: [css-validator] counting listed warnings

On Dec 15, 2006, at 00:57 , Jean-Guilhem Rouel wrote:

> Hi,
>
> Another suggestion would be to produce a warning only if its level  
> corresponds to what the user asked. That would avoid the  
> computation of a lot of warnings and a simple warnings.size() (or  
> something like that) would be enough to get the number of warnings.

Sounds like a good idea.

Minor problem: there would be no way to tell the user "there were  
other warnings, not shown here." with a link to the validation with  
all warnings. I suppose the Warnings class could keep a count of  
ignored warnings, too.

Your proposed solution would fix the problem at hand, and also http:// 
www.w3.org/Bugs/Public/show_bug.cgi?id=4081

Would you have a free hour to hack it up? :)

(no, it's not *so* urgent, but we're releasing on monday, and having  
this would be very cool.)
-- 
olivier

Received on Friday, 15 December 2006 08:26:35 UTC