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

Re: HTML Tidy bug?

From: Christophe Strobbe <christophe.strobbe@esat.kuleuven.ac.be>
Date: Wed, 11 Jun 2003 09:20:12 +0200
Message-Id: <5.0.2.1.2.20030611091004.00b22d38@mailserv.esat.kuleuven.ac.be>
To: html-tidy@w3.org

James,

The value of the id attribute must be unique in a document 
(http://www.w3.org/TR/html401/struct/global.html#adef-id). (This constraint 
does not apply to the name attribute, because you need 'name' to indicate 
that these radio buttons are a set.) You could write something like this:

  <input type="radio" name="Rating" id="RatingHorrid" value="horrid">
  <input type="radio" name="Rating" id="RatingBad" value="bad">
  <input type="radio" name="Rating" id="RatingAverage" value="average">
  <input type="radio" name="Rating" id="RatingGood" value="good">
  <input type="radio" name="Rating" id="RatingGreat" value="great" 
checked="checked">


Regards,
Christophe Strobbe

At 20:17 10/06/2003, jalarie@umflint.edu wrote:

>Tidy (version HTML Tidy for Windows released on 1st February
>2003) does not like the apparent multiple definitions of "Rating" in:
>
>  <input type="radio" name="Rating" id="Rating" value="horrid">
>  <input type="radio" name="Rating" id="Rating" value="bad">
>  <input type="radio" name="Rating" id="Rating" value="average">
>  <input type="radio" name="Rating" id="Rating" value="good">
>  <input type="radio" name="Rating" id="Rating" value="great"
>checked="checked">
>
>--
>***************************************************************
>* ...Having said that, I've probably told you more than I know.
>* James Alarie, Systems Analyst _____________
>jalarie@umich.edu
>* Information Technology Services ________ 207 MSB / UMF
>23123
>* University of Michigan - Flint _________ ph:  +1 810 762 3123
>* 303 East Kearsley Street _______________ fx:  +1 810 762 3687
>* Flint, MI  48502-2186 ________________ TZO = -0500, DST =
>yes
>* United States of America _________ #use
><standard_disclaimer>
>* Visit my website at:  http://spruce.flint.umich.edu/~jalarie/
>***************************************************************
>
Received on Wednesday, 11 June 2003 03:18:57 GMT

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