Re: proprietary attributes

* erik_t wrote:
>I'm trying to work around a warning tidy spits out for a proprietary
>attribute.
>That's the line in question:
>
><table role="presentation" summary="A summary">
>
>and tidy prints out the following warning:
>  line 45 column 9 - Warning: <table> proprietary attribute "role"
>
>I tried to use the --drop-proprietary-attributes option but it doesn't
>change anything. Even if I specify --errors it will still print the warning
>message. I'm not so concerned about the warning, though, it's more because I
>use tidy for automated testing and read out the exit code. So I need tidy to
>exit with 0 (which it doesn't because of the proprietary attribute).
>
>Is there anything I'm missing here?

I believe there is no way to suppress the warning and have Tidy exit
with a different status code. Note that with the option above Tidy
will drop the attribute and will not complain if you run it over the
output again. You will have to find another way to test for whether
Tidy found any problems you actually care about.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Thursday, 15 December 2011 16:59:41 UTC