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
e0df6501
Commit
e0df6501
authored
May 07, 2013
by
Timmy Willison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move attr hook for value to Sizzle.
Related:
https://github.com/jquery/sizzle/issues/209
parent
c57ca9e5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
attributes.js
src/attributes.js
+0
-8
sizzle
src/sizzle
+1
-1
No files found.
src/attributes.js
View file @
e0df6501
...
@@ -490,14 +490,6 @@ jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name )
...
@@ -490,14 +490,6 @@ jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name )
// fix oldIE attroperties
// fix oldIE attroperties
if
(
!
getSetInput
||
!
getSetAttribute
)
{
if
(
!
getSetInput
||
!
getSetAttribute
)
{
jQuery
.
expr
.
attrHandle
.
value
=
function
(
elem
,
name
,
isXML
)
{
var
ret
;
return
isXML
?
undefined
:
// Ignore the value *property* on inputs by using defaultValue
jQuery
.
nodeName
(
elem
,
"input"
)
?
elem
.
defaultValue
:
// Retrieve the attribute
(
ret
=
elem
.
getAttributeNode
(
name
))
&&
ret
.
specified
?
ret
.
value
:
undefined
;
};
jQuery
.
attrHooks
.
value
=
{
jQuery
.
attrHooks
.
value
=
{
set
:
function
(
elem
,
value
,
name
)
{
set
:
function
(
elem
,
value
,
name
)
{
if
(
jQuery
.
nodeName
(
elem
,
"input"
)
)
{
if
(
jQuery
.
nodeName
(
elem
,
"input"
)
)
{
...
...
sizzle
@
88a598b7
Subproject commit
b8789b87f1ecb00f0de82b2a13a3474dabdab40
6
Subproject commit
88a598b70da6acddbdbf695b605e03a77982b3d
6
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