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

Re: request for new warning re name attributes

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 25 May 2002 00:44:21 +0200
To: Dave Raggett <dsr@w3.org>
Cc: html-tidy@w3.org
Message-ID: <h6eteu0n8a3u748akov5a3dnn4t9s1j7nt@4ax.com>
* Dave Raggett wrote:
>The following request arises from experience within W3C.
>When tidying a document where there are links with name
>attributes which start with digits, Tidy adds an id attribute
>but doesn't warn about invalid values. ID values can't start
>with digits.

Yes, but running Tidy on the same document after adding the id, current
Tidy will warn about the invalid id attribute...

So you suggest adding something like the following?

  if (name is no valid ID)
    ReportWarning "cannot add id attribute, invalid ID '1foo'"
  else
    add_id_to_element

Should we warn about names that cannot be IDs in general?
Received on Friday, 24 May 2002 18:44:59 GMT

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