I've looked at FF, IE and Opera. FF doesn't support named item access from an HTMLSelectElement. It does support it from HTMLOptionsCollection, and returns 1 element even if there are multiple options with the same name.
IE doesn't support named item access from either HTMLSelectElement or HTMLOptionsCollection. Opera supports named item access from both HTMLSelectElements and HTMLOptionsCollections. In both cases it returns a single element if there are duplicate names. Dave On Thu, Apr 9, 2009 at 11:57 AM, Darin Adler <da...@apple.com> wrote: > On Apr 9, 2009, at 11:50 AM, David Moore wrote: > > So what's the right thing to do here? Should we be returning null or the >> element? >> > > Normally we take a look at what other browsers do when deciding on this > sort of this. We should look at IE and Firefox behavior. Also, lets check if > HTML 5 has anything to say on this. It’s quite possible someone researched > this already, and often HTML 5 has the results of such research. > > -- Darin > >
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev