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

Re: Tidy flags idref as an unknown attribute

From: Daniel Biddle <deltab@osian.net>
Date: Fri, 22 Dec 2000 05:28:31 +0000 (UTC)
To: rickr@rivio.com
cc: html-tidy@w3.org
Message-ID: <Pine.LNX.4.21.0012220513080.3350-100000@charizard.blazingfast.net>
On Thu, 21 Dec 2000 rickr@rivio.com wrote:

> The latest (August) version of Tidy is flagging idref as an "unknown
> attribute" in <label>.

It's right to do so. There is no attribute by that name in HTML.

> <label idref="name">Name:</label>
> <input type="text" id="name" />

Ah, I think you have misunderstood the syntax of <label>'s attribute list.
IDREF is the type of the attribute called 'for', and is a special SGML
keyword. (See <http://www.w3.org/TR/html4/types.html#type-idref>.)

What you mean is:

<label for="name">Name:</label>
<input type="text" id="name" />

> Rick Roth 
> Web Developer 
> Rivio, Inc. 
> rickr@rivio.com <outbind://21/rickr@rivio.com>  

Is outbind: a real URI scheme?

hope this helps,
-- 
Daniel Biddle <deltab@osian.net>
Received on Friday, 22 December 2000 00:30:04 GMT

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