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

Re: name-attribute on image-element with id

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 14 May 2004 11:37:36 +0200
To: Steffen Glückselig <steffen@gungfu.de>
Cc: html-tidy@w3.org
Message-ID: <40c1913e.924896821@smtp.bjoern.hoehrmann.de>

* Steffen Glückselig wrote:
>I just stumbled over this one: I have some img-Tags with id-attribute.  
>Tidy inserts a name-attribute which is not xhtml-conform.

No, see <http://www.w3.org/TR/xhtml1/#h-4.10>, <img> elements may have
both a name and id attribute. XHTML 1.0 Strict and XHTML 1.1 disallow
the name attribute but as such documents are less compatible Tidy adds
the name attribute. It probably does not change the document type decl
which is a known problem and maybe it should not add it for these two
or with HTML 4.01 Strict three document types but doing so would require
to change parts of the doctype code and I did not get around to do that
yet. You can change the tidylib.c:FixAnchors(...) call to set wantName
to 'no' but we don't currently offer a configuration option for this.
Received on Friday, 14 May 2004 05:39:59 GMT

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