From kfm-devel Mon Feb 02 08:16:11 2004 From: Shift Date: Mon, 02 Feb 2004 08:16:11 +0000 To: kfm-devel Subject: Re: DOM::Document::getElementsByTagName bug ? Message-Id: <200402020916.12290.shift () free ! fr> X-MARC-Message: https://marc.info/?l=kfm-devel&m=107570962524396 Le lundi 2 Février 2004 08:37, David Faure a écrit : > On Sunday 01 February 2004 18:39, Shift wrote: > > Hi, > > > > I have few questions about "NodeList DOM::Document::getElementsByTagName > > (const DOMString & tagname)". > > > > Is case important for this function ? > > Yes. > > > Few days ago when I used getElementsByTagName ("LINK") in > > http://bugs.kde.org/show_bug.cgi?id=57803 I retrieved 8 elements and now > > 0. > > Did you really mean 57803? It looks unrelated ("css for paged media"). It is a testcase. Un bugs.kde.org all pages use "link" tag :) > > So I decided to use getElementsByTagName ("link") an then I retrieved 8 > > elements. > > Sounds like a bug indeed, if it's about an HTML document. > > > Should the argument of getElementsByTagName always in lowercase ? > > No. For HTML documents (not XHTML nor XML), tags are exposed uppercase. So I should check for both ? upper and lowercase ? > > Is it a DOM specification ? (When I look at the DOM specifications > > http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html I can't find an > > answer) > > It's specified in Dom Level 2. > > Do you have a testcase? http://bugs.kde.org/show_bug.cgi?id=57803 is a testcase. I am not interested in the bug in this page but in the HTML of it :)