Re: [jQuery] JQuery problem with valid HTML ids

2007-03-22 Thread Olaf Bosch
Marc Jansen schrieb: #item.x { background-color: red; } this select and make red this: div id=item class=x/div -- Viele Grüße, Olaf --- [EMAIL PROTECTED] http://olaf-bosch.de www.akitafreund.de ---

Re: [jQuery] JQuery problem with valid HTML ids

2007-03-22 Thread Karl Rudd
Right. In a CSS file you escape the . with a \. So to reference: div id=item.x/div You would write: #item\.x { background-color: red; } Karl Rudd On 3/22/07, Olaf Bosch [EMAIL PROTECTED] wrote: Marc Jansen schrieb: #item.x { background-color: red; } this select and

[jQuery] JQuery problem with valid HTML ids

2007-03-21 Thread Adriano Bonat
Hello, I did a test case to show what is my problem: http://dpaste.com/7204/ I'm trying to use JQuery to get some elements with ids that contains '.' and ':', but that arent working, and with getElementById that's working. Am I missing something? Thanks in advance, -Adriano

Re: [jQuery] JQuery problem with valid HTML ids

2007-03-21 Thread Marc Jansen
Hi Adriano, This is very, very interesting! At first sight (and with http://www.w3.org/TR/html401/types.html#type-id in mind) this seems to be a bug. List: Correct me, if I'm wrong? But: Even pure CSS-selectors seem to fail on your test-suite, though: For example, add this to head of your

Re: [jQuery] JQuery problem with valid HTML ids

2007-03-21 Thread Karl Rudd
This was discussed a week or two ago. There's a ticket open on it with at patch to fix it. http://dev.jquery.com/ticket/143 Basically it means that if you want to select #item:x you have to construct the selector like this: $( #item\\:x ) The double slashes are there because \: in a

Re: [jQuery] JQuery problem with valid HTML ids

2007-03-21 Thread Adriano Bonat
I just tried: $( '#item\.x' ) $( '#item\:x') $( #item\\:x ) and I always get an Object, but calling, for example, html(), always returns null. Thanks. On 3/21/07, Karl Rudd [EMAIL PROTECTED] wrote: This was discussed a week or two ago. There's a ticket open on it with at patch to fix