Side navigation
#7408 closed bug (duplicate)
Opened November 05, 2010 07:18AM UTC
Closed November 07, 2010 03:17PM UTC
Last modified March 13, 2012 06:12PM UTC
Attribute selector in "is" not working in firefox
Reported by: | mcm.ham@gmail.com | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | attributes | Version: | 1.4.4rc |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Should be true in Firefox, works in other browsers and in Firefox for 1.4.2.
Attachments (0)
Change History (4)
Changed November 05, 2010 08:02AM UTC by comment:1
_comment0: | The documentation for [http://api.jquery.com/category/selectors/attribute-selectors/ attribute-selectors] says: \ > Attribute values in selector expressions can be written as bare words and must be surrounded by quotation marks. \ \ So if follow that and change your test accordingly to use quotation marks around the attribute value it works in all browsers. \ \ [http://jsfiddle.net/Y3gW8/ test case] → 1288944148432782 |
---|---|
_comment1: | The documentation for [http://api.jquery.com/category/selectors/attribute-selectors/ attribute-selectors] says: \ > Attribute values in selector expressions can be written as bare words and must be surrounded by quotation marks. \ \ So if follow that and change your test accordingly to use quotation marks around the attribute value it works in all browsers. \ \ [http://jsfiddle.net/Y3gW8/1 test case] → 1288944219600379 |
Changed November 05, 2010 08:34AM UTC by comment:2
Thanks, that helps. I guess I've just got into the habit of not using quotes coming from working with css where it appears to be optional in the standard, and until now has worked fine in jquery.
http://www.w3.org/TR/CSS2/selector.html#attribute-selectors
This bug can probably be marked as invalid.
Changed November 07, 2010 03:17PM UTC by comment:3
component: | unfiled → attributes |
---|---|
priority: | undecided → high |
resolution: | → duplicate |
status: | new → closed |
The documentation for attribute-selectors says:
So if you do that and change your test accordingly to use quotation marks around the attribute value it works in all browsers.
test case