Test IE bug affecting custom jQuery events triggered on tables (#8272)
See http://bugs.jquery.com/ticket/8272
by josh3736
HTML
<table></table>
<button id="a">:</button> <button id="b">others</button>
<div></div>
JavaScript
window.onerror=function(e) { alert(e); }
$(function() {
$('#a').click(function() {
$('table').trigger(':'); // Will throw an error in IE 6-8.
$('div').text(': ok!');
});
$('#b').click(function() {
var chars = '.,!@#$%^&*()-_+={[]}\\|;\'"<>/?`~'.split('');
for (var i = 0; i < chars.length; i++) {
$('table').trigger(chars[i]);
}
$('div').text('others ok!');
});
});