Peter Bengtsson schrieb:
> 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 have to disagree with that. Why shouldn't I be able to classify 
elements no matter if there's an id or not. It's not all about CSS, an 
id also serves as anchor and for scripting purposes. It's the same as if 
you were saying using a type selector together with a class makes no sense.

And: If it were a bug in jQuery, it would be a bug in every known CSS 
parser that exists out there. Because the CSS selector

div#identifier.classification

would only select the following element:

<div id="identifier" class="classification">


-- Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to