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

RE: getElementsByTagName() in Mozilla HTML implementation

From: Manos Batsis <m.batsis@bsnet.gr>
Date: Wed, 6 Feb 2002 08:27:40 +0200
Message-ID: <E657D8576967CF448D6AF22CB42DD2690FF1F8@ermhs.Athens.BrokerSystems.gr>
To: "Curt Arnold" <curta_ontheroad@yahoo.com>
Cc: <www-dom-ts@w3.org>

> -----Original Message-----
> From: Curt Arnold [mailto:curta_ontheroad@yahoo.com] 

> The source HTML documents use all upper-case tag names
> (the XHTML documents are valid XHTML so they use upper
> case tag names).

Shouldn't that be lower case?

> Microsoft IE does do this, so if I ask for
> getElementsByTagName("a"), I'll also get any <A>
> elements in the document.  Mozilla 0.9.8 will not.

Mozilla is correct (for XHTML) since 'a' and 'A' is not the same
element; 'xhtml:A' does not exist.

> I believe that the tests are testing legitimate
> specified behavior, however failing every test because
> of this one flaw overstates the issue.

> It would be good to confirm that the DOM spec does
> require case-insensitive behavior from
> getElementsByTagName and whether the issue can be
> fixed in Mozilla in a timely manner.

Mozilla behaves correctly. See [1] section 4.2.

[1] http://www.w3.org/TR/xhtml1/#diffs

Kindest regards,

Received on Wednesday, 6 February 2002 01:24:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:04 UTC