Re: HTMLdocument.getElementsByName() behaviour grey area

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