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
7723012e
Commit
7723012e
authored
Apr 24, 2013
by
Richard Gibson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #13809: Avoid collisions with words reserved by any version of ECMA-262
(cherry picked from commit
ad71f47b
)
parent
d605322c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
attributes.js
src/attributes.js
+3
-3
sizzle
src/sizzle
+1
-1
No files found.
src/attributes.js
View file @
7723012e
...
...
@@ -315,7 +315,7 @@ jQuery.extend({
if
(
nType
!==
1
||
!
jQuery
.
isXMLDoc
(
elem
)
)
{
name
=
name
.
toLowerCase
();
hooks
=
jQuery
.
attrHooks
[
name
]
||
(
jQuery
.
expr
.
match
.
bool
ean
.
test
(
name
)
?
boolHook
:
nodeHook
);
(
jQuery
.
expr
.
match
.
bool
.
test
(
name
)
?
boolHook
:
nodeHook
);
}
if
(
value
!==
undefined
)
{
...
...
@@ -354,7 +354,7 @@ jQuery.extend({
propName
=
jQuery
.
propFix
[
name
]
||
name
;
// Boolean attributes get special treatment (#10870)
if
(
jQuery
.
expr
.
match
.
bool
ean
.
test
(
name
)
)
{
if
(
jQuery
.
expr
.
match
.
bool
.
test
(
name
)
)
{
// Set corresponding property to false
if
(
getSetInput
&&
getSetAttribute
||
!
ruseDefault
.
test
(
name
)
)
{
elem
[
propName
]
=
false
;
...
...
@@ -462,7 +462,7 @@ boolHook = {
return
name
;
}
};
jQuery
.
each
(
jQuery
.
expr
.
match
.
bool
ean
.
source
.
match
(
/
\w
+/g
),
function
(
i
,
name
)
{
jQuery
.
each
(
jQuery
.
expr
.
match
.
bool
.
source
.
match
(
/
\w
+/g
),
function
(
i
,
name
)
{
var
getter
=
jQuery
.
expr
.
attrHandle
[
name
]
||
jQuery
.
find
.
attr
;
jQuery
.
expr
.
attrHandle
[
name
]
=
getSetInput
&&
getSetAttribute
||
!
ruseDefault
.
test
(
name
)
?
...
...
sizzle
@
b8789b87
Subproject commit
84a24c9fea7c5cd0874c4ba61a1ef77e0b37e08f
Subproject commit
b8789b87f1ecb00f0de82b2a13a3474dabdab406
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