[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Re: DOM::Document::getElementsByTagName bug ?
From: Shift <shift () free ! fr>
Date: 2004-02-02 8:16:11
Message-ID: 200402020916.12290.shift () free ! fr
[Download RAW message or body]
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 :)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic