About KJS::HTMLCollection::getNamedItems
David Faure
david at mandrakesoft.com
Wed Aug 14 23:21:37 BST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 15 August 2002 00:06, Koos Vriezen wrote:
> Hi,
>
> Getting a route from www.routenet.nl doesn't work because they do
> something like:
>
> <form name="myname">
> <input name="myname" type="radio" value="xx">
> <input name="myname" type="radio" value="yy">
> </form>
>
> When the user submits, a script copies 'document.myname.myname.value' to a
> hidden form element before posting.
> KHTML returns a collection on 'document.myname'
> and next throws a script error on 'document.myname.myname'.
I'm very surprised. IE returns a collection when doing document.something
and several elements are named that way, too.
Maybe it has a special case for form names (and doesn't return the input
elements when doing document.myname) ... but even then,
document.myname.myname would still return a collection, that's 100% sure,
so how would .value work? Which element should be picked up?
This code looks really wrong to me, but well, I know that this is never an answer ;)
The question is, what does IE return for document.myname and
document.myname.myname? Can anyone test that?
(Mozilla doesn't support document.myname anyway....)
> Btw, doing a '"" + document.myname', generates a 'Type error: No default
> value' script error.
Hmm, this means we have no list -> string conversion. What does IE show?
- --
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2-rc1 is out. ftp://ftp.kde.org/pub/kde/unstable/koffice-1.2-rc1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9Wtfy72KcVAmwbhARAp4XAJ43JY1WKYfFUKfCdmf2q9/WRDOWQQCeITnM
T5xnnOqu5Ci6X9B+w561xdY=
=HzaD
-----END PGP SIGNATURE-----
More information about the kfm-devel
mailing list