About KJS::HTMLCollection::getNamedItems
Koos Vriezen
koos.vriezen at xs4all.nl
Thu Aug 15 09:31:40 BST 2002
Hi,
Ok, tested on IE 6.0:
<html><body onLoad='alert(""+document.myname.nodeName)'>
<form name="myname">
<input name="myname" type="text">
</form>
</body></html>
Message box shows FORM. With document.myname.myname.nodeName it shows
INPUT.
If I add another form with 'myname' as name, the alert box shows
'undefined', without the 'nodeName' its '[Object]'
> > > 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?
Can't we get rid of this once and for all in kjs, eg. return '[Unknown]'
or '[Object]'?
> Are you sure IE gives a collection when an element is a child of the
> other?
> This site does work with Mozilla and IE.
It seems that no collection is returned when child/parent with the same
name occur.
Koos
More information about the kfm-devel
mailing list