[jQuery] Re: Atribute selector with squared brackets

2008-10-21 Thread Ariel Flesler
PHP automatically generates arrays from these kind of POST/GET keys. That's probably the main reason. On Tue, Oct 21, 2008 at 7:58 PM, ricardobeat <[EMAIL PROTECTED]> wrote: > > That's kind of what I meant to say. > > From my understanding, the CDATA rules apply if you are serving XHTML > as app

[jQuery] Re: Atribute selector with squared brackets

2008-10-21 Thread ricardobeat
That's kind of what I meant to say. >From my understanding, the CDATA rules apply if you are serving XHTML as application/xhtml+xml. If you are serving as text/html it is implied you are being backwards compatible, so you should go by the HTML4 rules where only A-z,0-9,._- characters are allowed.

[jQuery] Re: Atribute selector with squared brackets

2008-10-21 Thread jasonkarns
In XHTML, the name attribute on input (and textarea and select) elements is defined as CDATA not NMTOKEN thus, brackets are legal in name attributes on input elements. It is NOT backwards compatible with HTML, where the character restriction is [a-z][A-Z]-_ and . Further note, the id attribute ha

[jQuery] Re: Atribute selector with squared brackets

2008-10-21 Thread ricardobeat
Brackets are an invalid character in attributes, for XHTML served as text/html, which I guess accounts for most of jQuery usage anyway. Looks like someone already updated the docs. - ricardo On Oct 20, 11:36 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote: > We got a ticket about how to select eleme