W3C home > Mailing lists > Public > www-style@w3.org > February 2002

Re: HTMLdocument.getElementsByName() behaviour grey area

From: Etan Wexler <ewexler@stickdog.com>
Date: Wed, 6 Feb 2002 05:10:57 -0500 (EST)
Message-Id: <20020206101037.38CBD13629C@server12.safepages.com>
To: Rowland Shaw <Rowland.Shaw@crystaldecisions.com>, Web style list <www-style@w3.org>
Rowland Shaw had what he considered a DOM problem, but noted:

> The dirty hack of a solution is to emit and id _and_ and name
> with the same value (which is, of course, invalid mark-up)

The markup is invalid only if one fails to account for it in 
the document type declaration.

So the clean hack of a solution is to emit 'id' and 'name' 
attributes with identical values while emitting a document 
type declaration that allows the practice.

XML (or SGML) validity is one thing.  Conforming to well 
known applications of XML (or of SGML) is a different thing.

Etan Wexler
Received on Wednesday, 6 February 2002 07:35:19 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:00 UTC