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

Dealing with duplicate attributes in an element

From: Mduduzi Keswa <mkeswa@home.com>
Date: Fri, 3 Nov 2000 09:23:34 -0600
To: <html-tidy@w3.org>
Message-ID: <NEBBIMJHMEGNBHDLOAAPAEHGCAAA.mkeswa@home.com>
Hi all,
	I have a situation where an element has a duplicate attribute.
Example:
<table class="C1" class="C2" name="Name">

Using, [J]Tidy, how do I (chances are JTidy cannot do this - I'll ask
anyways)
1) Tell JTidy to always take the first one, OR
2) Get rid of all such attributes altogether (e.g. have <table
name="Name">), OR
3) Is my only chance is to work with a resulting DOM from JTidy?


Thanks.

-Mduduzi
Received on Friday, 3 November 2000 09:17:59 GMT

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