Re: name-attribute on image-element with id

* 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 UTC