Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
3bd737e8
Commit
3bd737e8
authored
Oct 08, 2010
by
David Petersen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://github.com/jquery/jquery
parents
60744e8a
a2aefbf3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
css.js
src/css.js
+1
-1
data.js
src/data.js
+1
-1
ajax.js
test/unit/ajax.js
+3
-3
css.js
test/unit/css.js
+6
-3
No files found.
src/css.js
View file @
3bd737e8
...
@@ -204,7 +204,7 @@ if ( !jQuery.support.opacity ) {
...
@@ -204,7 +204,7 @@ if ( !jQuery.support.opacity ) {
style
.
filter
=
ralpha
.
test
(
filter
)
?
style
.
filter
=
ralpha
.
test
(
filter
)
?
filter
.
replace
(
ralpha
,
opacity
)
:
filter
.
replace
(
ralpha
,
opacity
)
:
opacity
;
style
.
filter
+
' '
+
opacity
;
}
}
};
};
}
}
...
...
src/data.js
View file @
3bd737e8
...
@@ -121,7 +121,7 @@ jQuery.extend({
...
@@ -121,7 +121,7 @@ jQuery.extend({
// A method for determining if a DOM node can handle the data expando
// A method for determining if a DOM node can handle the data expando
acceptData
:
function
(
elem
)
{
acceptData
:
function
(
elem
)
{
if
(
elem
.
nodeName
)
{
if
(
elem
.
nodeName
)
{
match
=
jQuery
.
noData
[
elem
.
nodeName
.
toLowerCase
()
];
var
match
=
jQuery
.
noData
[
elem
.
nodeName
.
toLowerCase
()
];
if
(
match
)
{
if
(
match
)
{
return
!
(
match
===
true
||
elem
.
getAttribute
(
"classid"
)
!==
match
);
return
!
(
match
===
true
||
elem
.
getAttribute
(
"classid"
)
!==
match
);
...
...
test/unit/ajax.js
View file @
3bd737e8
...
@@ -362,11 +362,11 @@ test("serialize()", function() {
...
@@ -362,11 +362,11 @@ test("serialize()", function() {
);
);
equals
(
jQuery
(
'#form'
).
serialize
(),
equals
(
jQuery
(
'#form'
).
serialize
(),
"action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&search=search&email=dave%40jquery.com&number=43&select1=&select2=3&select3=1&select3=2"
,
"action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&search=search&email=dave%40jquery.com&number=43&select1=&select2=3&select3=1&select3=2
&select5=3
"
,
'Check form serialization as query string'
);
'Check form serialization as query string'
);
equals
(
jQuery
(
'#form :input'
).
serialize
(),
equals
(
jQuery
(
'#form :input'
).
serialize
(),
"action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&search=search&email=dave%40jquery.com&number=43&select1=&select2=3&select3=1&select3=2"
,
"action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&search=search&email=dave%40jquery.com&number=43&select1=&select2=3&select3=1&select3=2
&select5=3
"
,
'Check input serialization as query string'
);
'Check input serialization as query string'
);
equals
(
jQuery
(
'#testForm'
).
serialize
(),
equals
(
jQuery
(
'#testForm'
).
serialize
(),
...
@@ -378,7 +378,7 @@ test("serialize()", function() {
...
@@ -378,7 +378,7 @@ test("serialize()", function() {
'Check input serialization as query string'
);
'Check input serialization as query string'
);
equals
(
jQuery
(
'#form, #testForm'
).
serialize
(),
equals
(
jQuery
(
'#form, #testForm'
).
serialize
(),
"action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&search=search&email=dave%40jquery.com&number=43&select1=&select2=3&select3=1&select3=2&T3=%3F%0AZ&H1=x&H2=&PWD=&T1=&T2=YES&My+Name=me&S1=abc&S3=YES&S4="
,
"action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&search=search&email=dave%40jquery.com&number=43&select1=&select2=3&select3=1&select3=2&
select5=3&
T3=%3F%0AZ&H1=x&H2=&PWD=&T1=&T2=YES&My+Name=me&S1=abc&S3=YES&S4="
,
'Multiple form serialization as query string'
);
'Multiple form serialization as query string'
);
/* Temporarily disabled. Opera 10 has problems with form serialization.
/* Temporarily disabled. Opera 10 has problems with form serialization.
...
...
test/unit/css.js
View file @
3bd737e8
...
@@ -114,11 +114,14 @@ if(jQuery.browser.msie) {
...
@@ -114,11 +114,14 @@ if(jQuery.browser.msie) {
var
filterVal
=
"progid:DXImageTransform.Microsoft.Alpha(opacity=30) progid:DXImageTransform.Microsoft.Blur(pixelradius=5)"
;
var
filterVal
=
"progid:DXImageTransform.Microsoft.Alpha(opacity=30) progid:DXImageTransform.Microsoft.Blur(pixelradius=5)"
;
var
filterVal2
=
"progid:DXImageTransform.Microsoft.alpha(opacity=100) progid:DXImageTransform.Microsoft.Blur(pixelradius=5)"
;
var
filterVal2
=
"progid:DXImageTransform.Microsoft.alpha(opacity=100) progid:DXImageTransform.Microsoft.Blur(pixelradius=5)"
;
var
filterVal3
=
"progid:DXImageTransform.Microsoft.Blur(pixelradius=5)"
;
jQuery
(
'#foo'
).
css
(
"filter"
,
filterVal
);
jQuery
(
'#foo'
).
css
(
"filter"
,
filterVal
);
equals
(
jQuery
(
'#foo'
).
css
(
"filter"
),
filterVal
,
"css('filter', val) works"
);
equals
(
jQuery
(
'#foo'
).
css
(
"filter"
),
filterVal
,
"css('filter', val) works"
);
jQuery
(
'#foo'
).
css
(
"opacity"
,
1
)
jQuery
(
'#foo'
).
css
(
"opacity"
,
1
);
equals
(
jQuery
(
'#foo'
).
css
(
"filter"
),
filterVal2
,
"Setting opacity in IE doesn't clobber other filters"
);
equals
(
jQuery
(
'#foo'
).
css
(
"filter"
),
filterVal2
,
"Setting opacity in IE doesn't duplicate opacity filter"
);
equals
(
jQuery
(
'#foo'
).
css
(
"opacity"
),
1
,
"Setting opacity in IE with other filters works"
)
equals
(
jQuery
(
'#foo'
).
css
(
"opacity"
),
1
,
"Setting opacity in IE with other filters works"
);
jQuery
(
'#foo'
).
css
(
"filter"
,
filterVal3
).
css
(
"opacity"
,
1
);
ok
(
jQuery
(
'#foo'
).
css
(
"filter"
).
indexOf
(
filterVal3
)
!==
-
1
,
"Setting opacity in IE doesn't clobber other filters"
);
});
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment