Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-03-09 Thread Christof Donat
Hi, $('[EMAIL PROTECTED]my:elem]') I guess, that that does not use getElementById() and thus is a lot slower than $('#my:elem'). I guess, that JSF might also have Problems with CSS, becaue there you use stuff like #my:hover, etc. To make the patch to jQuery as small as possible and let most

Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-03-09 Thread Klaus Hartl
Christof Donat schrieb: Hi, $('[EMAIL PROTECTED]my:elem]') I guess, that that does not use getElementById() and thus is a lot slower than $('#my:elem'). I guess, that JSF might also have Problems with CSS, becaue there you use stuff like #my:hover, etc. To make the patch to jQuery

Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-03-09 Thread Brian Miller
I second this suggestion. Most other meta-languages allow backslash-escaping, I don't see why it would be a bad idea here. - Brian I didn't like the idea of hacking jQuery to make selectors with these special chars work, but as it turned out, that is what should be expected! From the CSS

[jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-03-08 Thread manfred berry
Hi I wonder why jquery is using the : as seperator for custom selectors as this is just another character which can be used in any element id. In other words this means that for example if I have an id=my:elem this element is the not selectable like $('#my:id') as the regexp on line 949: re2 =

Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-03-08 Thread Christopher Jordan
Have you posted this on the developer list? That's probably a really good place for this post. Cheers, Chris manfred berry wrote: Hi I wonder why jquery is using the : as seperator for custom selectors as this is just another character which can be used in any element id. In other words

Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-03-08 Thread Brandon Aaron
There is a ticket for this: http://dev.jquery.com/ticket/143 -- Brandon Aaron On 3/8/07, Christopher Jordan [EMAIL PROTECTED] wrote: Have you posted this on the developer list? That's probably a really good place for this post. Cheers, Chris manfred berry wrote: Hi I wonder why

Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-03-08 Thread Klaus Hartl
manfred berry schrieb: Hi I wonder why jquery is using the : as seperator for custom selectors as this is just another character which can be used in any element id. In other words this means that for example if I have an id=my:elem this element is the not selectable like $('#my:id') as

Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-03-08 Thread Jörn Zaefferer
Brandon Aaron schrieb: There is a ticket for this: http://dev.jquery.com/ticket/143 I've added another comment on that ticket. I'm currently working with JSF, too, so a working solution is quite interesting. -- Jörn Zaefferer http://bassistance.de

Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-02-16 Thread Jason Levine
Sam Collett wrote: It is valid (as it mentions colons in the text you quoted), just not at the start. Oops. That'll teach me to read everything twice after shoveling a foot and a half of snow. ;-) -- View this message in context:

Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-02-15 Thread Jason Levine
It looks like : isn't a valid character for ID attributes. From http://www.w3.org/TR/html401/types.html#type-name : ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens (-), underscores (_), colons (:), and periods

Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-02-15 Thread Sam Collett
On 15/02/07, Jason Levine [EMAIL PROTECTED] wrote: It looks like : isn't a valid character for ID attributes. From http://www.w3.org/TR/html401/types.html#type-name : ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]),

Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-02-15 Thread John Resig
Jason - We don't support HTML-style attributes, instead we support CSS Selectors (which support a subset of HTML attributes). Some information here: http://www.w3.org/TR/CSS21/selector.html It's an important distinction, because using CSS selectors it's not possible to select all possible HTML