On 11/4/06, dave.methvin <[EMAIL PROTECTED]> wrote:
> Since form.elements is a NodeList, it shouldn't have a nodeType; only
> DOMElements should have nodeType. But IE's form.elements NodeList has a
> nodeType=1, .nodeName="FORM" and its own .childNodes NodeList that returns
> the same thing as form.childNodes. IE seems to have combined the
> form.elements NodeList with the form node itself!

I added the nodeType test for the Firefox issue of reporting object
and embed elements as functions ... which is probably a more minor
issue than this issue with node lists and IE. The Firefox issue could
easily be worked around by just allowing jQuery to create the element
instead of using the DOM methods to create them and then pass to
jQuery. I would suggest removing the nodeType test (until a workaround
is found for IE is found) and adding the a.length!=undefined test you
propose. ... that is unless a workaround is found quickly.

--
Brandon Aaron

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to