matthewwithanm / jquery-icbiacontrol

Style browser controls without losing their native behaviors.
MIT License
12 stars 6 forks source link

Protect radio button name attribute #2

Closed aebsr closed 12 years ago

aebsr commented 12 years ago

Not really a bug, but a helpful addition. When you don't have control over element naming conventions, you can get some interesting stuff output by random CMS's. I recently received this error:

Uncaught Error: Syntax error, unrecognized expression: input[name=period.delimited.string.as.value] 

While wrapping the attribute in a quote protects it from being seen as a syntax error.

a la:

input[name="period.delimited.string.as.value"] 
matthewwithanm commented 12 years ago

Oops, thanks! I cherry picked the commit so it's in the repo as 6247684a54ed6c5114ad347e52e006b53920514b.