W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2001

Re: Fixing duplicate definitions of an attribute

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 13 Apr 2001 15:58:19 +0200
To: Daniel Lieuwen <lieuwen@research.bell-labs.com>
Cc: html-tidy@w3.org
Message-ID: <kn0edt8iji38vpj839jegsdoca0cm8htaq@4ax.com>
* Daniel Lieuwen wrote:
>I suggest that duplicate definitions of an attribute, e.g.,
>
><foo num=7 num=8 y=9 num=3>
>
>not simply be flagged with a warning, but repaired to the appropriate
>value using the last attribute definition

There were several people who requested this feature. I agree that a lot
of people actually need such a feature since they want to produce a
wellformed parse tree, but i disagree with your suggestion. If their
value is equal Tidy can just throw away one of the attribute
definitions, but if they are unequal, Tidy has to decide which attribute
definition rules. Several Browsers including MSIE 6 use the _first_
value and throw the other values away, Tidy should adopt this behaivour
upon user option.
-- 
Björn Höhrmann | mailto:bjoern@hoehrmann.de | http://www.bjoernsworld.de
am Badedeich 7 | Telefon: +49(0)4667/981028 | http://bjoern.hoehrmann.de
25899 Dagebüll | PGP Pub. KeyID: 0xA4357E78 | http://www.learn.to/quote/
Received on Friday, 13 April 2001 09:57:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT