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

Re: Fwd: Re: Duplicate attribute names

From: Richard A. O'Keefe <ok@atlas.otago.ac.nz>
Date: Thu, 9 Nov 2000 13:44:42 +1300 (NZDT)
Message-Id: <200011090044.NAA06210@atlas.otago.ac.nz>
To: JHennick@Mindspring.Com, garyp@firstech.com
Cc: html-tidy@w3.org
	> >     drop-duplicate-attributes: (never|keep-first|keep-last|if-equal)
Gary asks
	So, where should the duplicate attributes be dropped?
	(1) In the built tree
	(2) In the pprinted output only
There is already a point in Tidy's execution where unknown and
duplicated attributes are *detected*.  That's where GetToken()
calls CheckAttributes().  The minimal change to Tidy would be
to put it in there, so the answer is (1) in the built tree.

One reason why Tidy does the checking where it does is that there
are a number of tidying steps that delete nodes, which would go
unchecked if alternative (2) were chosen.
There's someone here who needs unknown attributes and duplicated
values to be removed, so I'm editing away on another machine right
now, trying to implement this.
Received on Wednesday, 8 November 2000 19:44:52 UTC

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