git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4c572bd
)
Fixed issues with @* and @foo selectors. Ticket #2
author
John Resig
<jeresig@gmail.com>
Fri, 16 Jun 2006 02:18:04 +0000
(
02:18
+0000)
committer
John Resig
<jeresig@gmail.com>
Fri, 16 Jun 2006 02:18:04 +0000
(
02:18
+0000)
jquery/jquery.js
patch
|
blob
|
history
diff --git
a/jquery/jquery.js
b/jquery/jquery.js
index
37c2b3f
..
c377f63
100644
(file)
--- a/
jquery/jquery.js
+++ b/
jquery/jquery.js
@@
-496,7
+496,6
@@
$.g = {
disabled: "a.disabled",
checked: "a.checked"
},
disabled: "a.disabled",
checked: "a.checked"
},
- // TODO: Write getAttribute helper
".": "$.hasWord(a,m[2])",
"@": {
"=": "$.attr(a,m[3]) == m[4]",
".": "$.hasWord(a,m[2])",
"@": {
"=": "$.attr(a,m[3]) == m[4]",
@@
-661,7
+660,7
@@
$.filter = function(t,r,not) {
}
while ( t.length > 0 && t.match(/^[:\\.#\\[a-zA-Z\\*]/) ) {
}
while ( t.length > 0 && t.match(/^[:\\.#\\[a-zA-Z\\*]/) ) {
- var re = new RegExp( "^\\[ *@([a-z0-9\\(\\)_-]+) *([~!\\|\\*$^=]*) *'?\"?([^'\"]*)'?\"? *\\]", "i" );
+ var re = new RegExp( "^\\[ *@([a-z0-9\\*\\(\\)_-]+) *([~!\\|\\*$^=]*) *'?\"?([^'\"]*)'?\"? *\\]", "i" );
var m = re.exec(t);
if ( m !== null ) {
var m = re.exec(t);
if ( m !== null ) {