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
42785b1c
Commit
42785b1c
authored
Dec 19, 2006
by
Jörn Zaefferer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
0e540ec1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
coreTest.js
src/jquery/coreTest.js
+5
-1
jquery.js
src/jquery/jquery.js
+3
-2
No files found.
src/jquery/coreTest.js
View file @
42785b1c
...
@@ -379,7 +379,7 @@ test("expressions - child and adjacent", function() {
...
@@ -379,7 +379,7 @@ test("expressions - child and adjacent", function() {
});
});
test
(
"expressions - attributes"
,
function
()
{
test
(
"expressions - attributes"
,
function
()
{
expect
(
1
6
);
expect
(
1
9
);
t
(
"Attribute Exists"
,
"a[@title]"
,
[
"google"
]
);
t
(
"Attribute Exists"
,
"a[@title]"
,
[
"google"
]
);
t
(
"Attribute Exists"
,
"*[@title]"
,
[
"google"
]
);
t
(
"Attribute Exists"
,
"*[@title]"
,
[
"google"
]
);
t
(
"Attribute Exists"
,
"[@title]"
,
[
"google"
]
);
t
(
"Attribute Exists"
,
"[@title]"
,
[
"google"
]
);
...
@@ -395,6 +395,10 @@ test("expressions - attributes", function() {
...
@@ -395,6 +395,10 @@ test("expressions - attributes", function() {
t
(
"Attribute Ends With"
,
"a[@href $= 'org/']"
,
[
"mark"
]
);
t
(
"Attribute Ends With"
,
"a[@href $= 'org/']"
,
[
"mark"
]
);
t
(
"Attribute Contains"
,
"a[@href *= 'google']"
,
[
"google"
,
"groups"
]
);
t
(
"Attribute Contains"
,
"a[@href *= 'google']"
,
[
"google"
,
"groups"
]
);
t
(
"Select options via [@selected]"
,
"#select1 option[@selected]"
,
[
"option1a"
]
);
t
(
"Select options via [@selected]"
,
"#select2 option[@selected]"
,
[
"option2d"
]
);
t
(
"Select options via [@selected]"
,
"#select3 option[@selected]"
,
[
"option3b"
,
"option3c"
]
);
t
(
"Grouped Form Elements"
,
"input[@name='foo[bar]']"
,
[
"hidden2"
]
);
t
(
"Grouped Form Elements"
,
"input[@name='foo[bar]']"
,
[
"hidden2"
]
);
t
(
":not() Existing attribute"
,
"select:not([@multiple])"
,
[
"select1"
,
"select2"
]);
t
(
":not() Existing attribute"
,
"select:not([@multiple])"
,
[
"select1"
,
"select2"
]);
...
...
src/jquery/jquery.js
View file @
42785b1c
...
@@ -1418,7 +1418,7 @@ jQuery.extend({
...
@@ -1418,7 +1418,7 @@ jQuery.extend({
enabled
:
"!a.disabled"
,
enabled
:
"!a.disabled"
,
disabled
:
"a.disabled"
,
disabled
:
"a.disabled"
,
checked
:
"a.checked"
,
checked
:
"a.checked"
,
selected
:
"a.selected
|| jQuery.attr(a, 'selected')
"
,
selected
:
"a.selected"
,
// Form elements
// Form elements
text
:
"a.type=='text'"
,
text
:
"a.type=='text'"
,
...
@@ -1570,7 +1570,8 @@ jQuery.extend({
...
@@ -1570,7 +1570,8 @@ jQuery.extend({
value
:
"value"
,
value
:
"value"
,
disabled
:
"disabled"
,
disabled
:
"disabled"
,
checked
:
"checked"
,
checked
:
"checked"
,
readonly
:
"readOnly"
readonly
:
"readOnly"
,
selected
:
"selected"
};
};
// IE actually uses filters for opacity ... elem is actually elem.style
// IE actually uses filters for opacity ... elem is actually elem.style
...
...
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