Milian Wolff schrieb:
> jQuery current version cant handle something like this:
> 
>     $("[EMAIL PROTECTED]'foo[bar]']")
> 
> which I filed under bug #185 [1]. I now wrote a hack and would appreciate if 
> you could test it. I saw testcases in the comments, so I think you have some 
> way to do this? Furthermore the above code should be added to those 
> testcases.
> 
> [1] http://jquery.com/dev/bugs/bug/185/
> 
> Any comments / improvements / possible bugs are appriciated.
> 
> PS: Thanks for this awesome piece of code!


This was discussed earlier on this list if I remember correctly. A value 
of "foo[bar]" for the name attribute is invalid HTML, thus jQuery 
shouldn't be supposed to support that from the beginning.

 From the HTML spec:

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 (".")."

http://www.w3.org/TR/REC-html40/types.html#type-cdata


Another quote from the list:

"Point being: starting from code that's invalid and trying to script on
top of it isn't going to make yr day any easier."


Regards, Klaus

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

Reply via email to