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
0b91e836
Commit
0b91e836
authored
Dec 17, 2012
by
Timmy Willison
Committed by
Rick Waldron
Dec 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.0: Remove support.optSelected
parent
049cc9d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
24 deletions
+0
-24
attributes.js
src/attributes.js
+0
-20
support.js
src/support.js
+0
-4
No files found.
src/attributes.js
View file @
0b91e836
...
@@ -610,26 +610,6 @@ if ( !jQuery.support.style ) {
...
@@ -610,26 +610,6 @@ if ( !jQuery.support.style ) {
};
};
}
}
// Safari mis-reports the default selected property of an option
// Accessing the parent's selectedIndex property fixes it
if
(
!
jQuery
.
support
.
optSelected
)
{
jQuery
.
propHooks
.
selected
=
jQuery
.
extend
(
jQuery
.
propHooks
.
selected
,
{
get
:
function
(
elem
)
{
var
parent
=
elem
.
parentNode
;
if
(
parent
)
{
parent
.
selectedIndex
;
// Make sure that it also works with optgroups, see #5701
if
(
parent
.
parentNode
)
{
parent
.
parentNode
.
selectedIndex
;
}
}
return
null
;
}
});
}
// Radios and checkboxes getter/setter
// Radios and checkboxes getter/setter
if
(
!
jQuery
.
support
.
checkOn
)
{
if
(
!
jQuery
.
support
.
checkOn
)
{
jQuery
.
each
([
"radio"
,
"checkbox"
],
function
()
{
jQuery
.
each
([
"radio"
,
"checkbox"
],
function
()
{
...
...
src/support.js
View file @
0b91e836
...
@@ -55,10 +55,6 @@ jQuery.support = (function() {
...
@@ -55,10 +55,6 @@ jQuery.support = (function() {
// Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)
// Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)
checkOn
:
!!
input
.
value
,
checkOn
:
!!
input
.
value
,
// Make sure that a selected-by-default option has a working selected property.
// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
optSelected
:
opt
.
selected
,
// Makes sure cloning an html5 element does not cause problems
// Makes sure cloning an html5 element does not cause problems
// Where outerHTML is undefined, this still works
// Where outerHTML is undefined, this still works
html5Clone
:
document
.
createElement
(
"nav"
).
cloneNode
(
true
).
outerHTML
!==
"<:nav></:nav>"
,
html5Clone
:
document
.
createElement
(
"nav"
).
cloneNode
(
true
).
outerHTML
!==
"<:nav></:nav>"
,
...
...
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