#7445 closed bug (invalid)
attribute selector not support attribute name with '$'
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | 1.5 |
Component: | unfiled | Version: | 1.4.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Change History (5)
comment:1 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
i have escape the $ with two backslash,you can see in the bug Description.
comment:3 Changed 10 years ago by
It looks like the reporter forgot to escape the double backslash. As \\ means line break in Trac formatting. So I guess where the linebreaks are the reporter typed \\.
What I don't understand is what the reporter actually reports. The selector documentation explicitly states that you need to double-escape the meta characters in the documentation.
test case that shows we can select by attributes named $sw
and that the escaping works as required/documented
comment:4 Changed 10 years ago by
I know the test case can run rightly on google chrome,firefox and ie。but i write the same test case in my computer ,it shows that you can not select by attributes named $sw on ie8.
comment:5 Changed 10 years ago by
When I run the test case I linked to in IE 8 it works as expected. Can you provide a test case on http://jsfiddle.net which doesn't work in IE8?
Thanks for the report but this is not a jQuery bug.
$sw
is not valid in the name part of a CSS attribute selector. You must escape the$
. In the future, please use the jQuery Forum for support requests.