W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2002

Re: getElementById and case sensitivity

From: Jim Ley <jim@jibbering.com>
Date: Tue, 2 Jul 2002 09:17:16 -0000
Message-ID: <001f01c221a9$47f93820$ca969dc3@emedia.co.uk>
To: <www-dom@w3.org>

"Boris Zbarsky" <bzbarsky@MIT.EDU>
> > There is an inconsistant behavior in how the 2 major DOM
implementations
> > (IE/Mozilla) treat cases in ID attributes when referencing elements
with
> > getElementById.
>
> IDs are case-sensitive in HTML.  Therefore "crapper" and "crappeR" are
> different IDs that could belong to different elements.

Unless the element is an Anchor, when that would be invalid.

Jim.
Received on Tuesday, 2 July 2002 05:20:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:56 GMT