[jQuery] [BUG?] selecting by attribute values - quotes are needed
> I was having trouble with the form plugin and while debugging I
> discovered that quotes are necessary when selecting by attribute
> values * if * the selection contains more than one item.
This W3C page says "Attribute values must be identifiers or strings" so it
seems the quotes should be optional for simple names.
http://www.w3.org/TR/css3-selectors/#attribute-selectors
It looks like the problem is here in .filter():
// Look for something (optionally) enclosed with quotes
.replace( 'Q', " *'?\"?([^'\"]*)'?\"? *" ), "i" );
I think the [^'\"]* part of the regexp is eating up too much of the selector
string.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/