diff options
author | John Firebaugh <john_firebaugh@bigfix.com> | 2011-04-12 16:48:22 -0400 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2011-04-12 16:48:22 -0400 |
commit | 0d8b247cab2f91e118d0b734028ce827e09a71f7 (patch) | |
tree | 81663e8bfa60d2fcf7e8f5f9cb96ab21ab40316f /test | |
parent | 3418f323876043db63a2da9f653e51d5458647fa (diff) | |
download | jquery-0d8b247cab2f91e118d0b734028ce827e09a71f7.tar.gz jquery-0d8b247cab2f91e118d0b734028ce827e09a71f7.zip |
Accessing the 'type' property on VML elements fails on IE. Fixes #7071.
Diffstat (limited to 'test')
-rw-r--r-- | test/index.html | 5 | ||||
-rw-r--r-- | test/unit/event.js | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/index.html b/test/index.html index a10655089..bf7dc7989 100644 --- a/test/index.html +++ b/test/index.html @@ -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> diff --git a/test/unit/event.js b/test/unit/event.js index b46ef9ebb..491396f93 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -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() { |