RE: getElementsByTagName() in Mozilla HTML implementation

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

Manos

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