|
From: <mbr...@vi...> - 2004-06-14 20:44:24
|
Here's an example:
<html>
<body>
<select name="foo" size="4">
<option value="1">1</option>
</select>
</body>
</html>
I forgot to specify that the size attribute must be > 1.
Mike Bresnahan
Quoting Brad Clarke <bc...@bo...>:
> IE6 and Mozilla 1.6 both select the first option for me. Could you make an
> example HTML page that shows this?
>
> Brad C
>
> At 02:52 PM 6/14/2004, you wrote:
>
> >The function
> >com.gargoylesoftware.htmlunit.html.HtmlSelect.getSelectedOptions()
> >returns a 1-element array containing the first option when no options are
> >marked as selected. The code that does this is near the end of the function
> >and looks like this (Revision: 1.24):
> >
> > else {
> > result.add(firstOption);
> > }
> >
> >This behavior is not consistent with Internet Explorer 6.0 or Netscape
> >7.1. To
> >be consistent, the code should return a 0-element array.
> >
> >Mike Bresnahan
> >
|