On 2/18/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Peter Bengtsson schrieb:
> >>From the Firebug console...
> >>>> document.getElementById('id_descriptions.sv');
> > <textarea id="id_descriptions.sv" cols="40" rows="3"
> > name="descriptions.sv:latin1:utext:record">
> >>>> $('#id_descriptions.sv');
> > []
> >>>> $('#id_descriptions.sv').size();
> > 0
> >
> > The XHTML validates so I don't see what's wrong with the ID value.
>
> You may use a period in an id still being valid XHTML, but in this case
> you cannot use the id as a (CSS) selector, because the period is a class
> selector.
>
I'm not convinced it's not a bug in jQuery because it doesn't make
sense to specify a class on an Id. I'm not going to make a fuss about
it unless you also think it needs to be made a fuss about.I've gone ahead and changed my XHTML so that I'm not getting near the problem again. > The selector in your case would select an element like the following: > > <textarea id="id_descriptions" class="sv"></textarea> > > > -- Klaus > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
