On Tue, Jan 6, 2009 at 4:23 PM, John Resig <[email protected]> wrote:

>
> Well, the problem is that :input is designed to match individual form
> elements - especially things that might be submitted to the server.
> Individual option elements aren't submitted to a server - nor are they
> individually useful (their values only really mean anything within the
> context of a select). For the same reason I don't think we should
> include <optgroup>.


Yeah, I see the issue, now thinking about it, I guess my proposal makes
little
sense.


>
>
> At least on your end the fix is pretty easy: Change ":input" to
> ":input, option".


True, that won't hurt much :)


>
>
> I'm definitely open to more discussion on this point, just not
> convinced yet (and am definitely afraid that it might cause other code
> to break).


I didn't think about the actual common usecase of :input - I do think
now that it would break a lot of code probably, so for now, I think we're
good with the solution to just add option to our own selectors.

Cheers,
Paul


>
>
> --John
>
>
>
> On Tue, Jan 6, 2009 at 10:14 AM, Paul Bakaus <[email protected]>
> wrote:
> > Hey guys,
> >
> > I figured recently that the :input selector matches select boxes but no
> > options. Since we use it to cancel events in jQuery UI,
> > some users reported select boxes not to work when draggables are used,
> for
> > example.
> >
> > See the bug report here: http://dev.jquery.com/ticket/3791
> >
> > Do you see any reason why adding <option> to the matched elements would
> be
> > problematic?
> >
> > Thanks,
> > Paul
> >
> > --
> > Paul Bakaus
> > UI Architect
> > --
> > http://paulbakaus.com
> > http://www.linkedin.com/in/paulbakaus
> >
> > >
> >
>
> >
>


-- 
Paul Bakaus
UI Architect
--
http://paulbakaus.com
http://www.linkedin.com/in/paulbakaus

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to