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

Re: getElementById and case sensitivity

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 01 Jul 2002 19:28:50 -0400
Message-Id: <200207012328.TAA05478@nerd-xing.mit.edu>
To: Thor Larholm <Thor@jubii.dk>
cc: "'www-dom@w3.org'" <www-dom@w3.org>

> 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.

Boris
-----------------
There is no distinctly American criminal class except
Congress.
                      -- Mark Twain
Received on Monday, 1 July 2002 19:32:58 GMT

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