W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2011

Re: proprietary attributes

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 15 Dec 2011 17:59:12 +0100
To: erik_t <erik.trauschke@gmail.com>
Cc: html-tidy@w3.org
Message-ID: <bk9ke7l1rh60koihrl1uoa3udkc7gqc53n@hive.bjoern.hoehrmann.de>
* erik_t wrote:
>I'm trying to work around a warning tidy spits out for a proprietary
>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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:58 UTC