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
0d8b247c
Commit
0d8b247c
authored
Apr 12, 2011
by
John Firebaugh
Committed by
John Resig
Apr 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Accessing the 'type' property on VML elements fails on IE. Fixes #7071.
parent
3418f323
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
event.js
src/event.js
+2
-2
index.html
test/index.html
+5
-0
event.js
test/unit/event.js
+3
-0
No files found.
src/event.js
View file @
0d8b247c
...
...
@@ -800,7 +800,7 @@ if ( !jQuery.support.changeBubbles ) {
beforedeactivate
:
testChange
,
click
:
function
(
e
)
{
var
elem
=
e
.
target
,
type
=
elem
.
type
;
var
elem
=
e
.
target
,
type
=
jQuery
.
nodeName
(
elem
,
"input"
)
?
elem
.
type
:
""
;
if
(
type
===
"radio"
||
type
===
"checkbox"
||
elem
.
nodeName
.
toLowerCase
()
===
"select"
)
{
testChange
.
call
(
this
,
e
);
...
...
@@ -810,7 +810,7 @@ if ( !jQuery.support.changeBubbles ) {
// Change has to be called before submit
// Keydown will be called before keypress, which is used in submit-event delegation
keydown
:
function
(
e
)
{
var
elem
=
e
.
target
,
type
=
elem
.
type
;
var
elem
=
e
.
target
,
type
=
jQuery
.
nodeName
(
elem
,
"input"
)
?
elem
.
type
:
""
;
if
(
(
e
.
keyCode
===
13
&&
elem
.
nodeName
.
toLowerCase
()
!==
"textarea"
)
||
(
e
.
keyCode
===
32
&&
(
type
===
"checkbox"
||
type
===
"radio"
))
||
...
...
test/index.html
View file @
0d8b247c
...
...
@@ -45,6 +45,10 @@
<script
src=
"unit/effects.js"
></script>
<script
src=
"unit/offset.js"
></script>
<script
src=
"unit/dimensions.js"
></script>
<!-- For testing http://bugs.jquery.com/ticket/7071 -->
<xml:namespace
ns=
"urn:schemas-microsoft-com:vml"
prefix=
"v"
/>
<style>v
\
:oval
{
behavior
:
url(#default#VML)
;
display
:
inline-block
;
}
</style>
</head>
<body
id=
"body"
>
...
...
@@ -147,6 +151,7 @@
<span
id=
"test.foo[5]bar"
class=
"test.foo[5]bar"
></span>
<foo
_bar
id=
"foobar"
>
test element
</foo
_bar
>
<v:oval
id=
"oval"
style=
"width:100pt;height:75pt;"
fillcolor=
"red"
>
</v:oval>
</form>
<b
id=
"floatTest"
>
Float test.
</b>
<iframe
id=
"iframe"
name=
"iframe"
></iframe>
...
...
test/unit/event.js
View file @
0d8b247c
...
...
@@ -776,6 +776,9 @@ test("trigger() shortcuts", function() {
// manually clean up detached elements
elem
.
remove
();
// test that special handlers do not blow up with VML elements (#7071)
jQuery
(
"#oval"
).
click
().
keydown
();
});
test
(
"trigger() bubbling"
,
function
()
{
...
...
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