-
- // events don't work with iframes, see #939
- var tmp = document.createElement('iframe');
- document.body.appendChild( tmp );
- var doc = tmp.contentDocument;
- doc.open();
- doc.write("<html><body><input type='text'/></body></html>");
- doc.close();
-
- var input = doc.getElementsByTagName("input")[0];
-
- input.addEventListener('click', function() {
- ok( true, "Event handling via DOM 2 methods" );
- }, false);
-
- $(input).bind("click",function() {
- ok( true, "Event handling via jQuery's handler" );
- });
-
- triggerEvent( input, "click" );
-
- document.body.removeChild( tmp );