Subj : Re: Shouldn't getElementById use name attribute of INPUT control? To : netscape.public.mozilla.jseng From : ljwynne Date : Sun Sep 12 2004 06:07 pm That would explain the discrepency in my testing. I'll recommend to the developers of the system I'm testing to alter their html to conform to the specification. Thank you, Martin, for your input. Martin Honnen wrote in message news:... > Larry Wynne wrote: > > > HttpUnit seems to only look for the "id" attribute of an HTML element > > when executing the getElementById javascript and doesn't recognize the > > "name" attribute. In a browser this method will work for both "id" and > > "name" attributes. > > Then the browser is not following the W3C DOM specification, it is > probably IE on Windows that does that. > Try document.getElementsByName('field').item(0). .