RE: getElementsByTagName() in Mozilla HTML implementation

> > Internet Explorer and Mozilla are both correctly case
> > sensitive for XML (and XHTML).  Their behavior differs
> > for HTML documents.  IE appears either to perform a
> > case-insensitive match on the tag name, Mozilla
> > performs a case-sensitive match.
> 
> You'd break existing code if you demand HTML to be case-sensitive. HTML
has
> always been case-*in*sensitive. So, Mozilla should change it's behaviour
for
> HTML documents.

According to http://www.w3.org/TR/html401/struct/global.html#adef-id the id
attribute *is* case-sensitive in HTML 4.01, and in that respect, I'd say
that the Gecko implementation is correct.

Received on Thursday, 7 February 2002 06:40:01 UTC