//https://developer.mozilla.org/ja/docs/Web/JavaScript/A_re-introduction_to_JavaScript
//Firefox 1.5 の bfcache が無効になりますので、他に理由がない限り Firefox では unload リスナを登録するべきではないことに注意してください。
X_ViewPort[ 'dispatch' ]( X_EVENT_UNLOAD );
- //alert('unload');
+ //alert('unload');
X_ViewPort_document[ 'kill' ]();
X_ViewPort[ 'kill' ]();
-
//X_System[ 'dispatch' ]( X_EVENT_SHUT_DOWN );
break;
case 'blur' :
case 'focusout' :
- // TODO ie5...
- if( 5.5 < X_UA[ 'IE' ] && X_UA[ 'IE' ] < 9 ){
+ if( ( 5.5 < X_UA[ 'IE' ] && X_UA[ 'IE' ] < 9 )
+ ||
+ // TODO ie5... activeElement に障るとエラーになるため VBS 経由で activeElement に触り安全確認する(未確認)
+ ( 5 <= X_UA[ 'IE' ] && X_UA[ 'IE' ] < 5.5 && !window[ 'vbs_testAE' ]() )
+ ){
xnode = X_Node_getXNode( document.activeElement );
if( xnode ){
xnode[ 'listenOnce' ]( [ 'focus', 'blur' ], X_ViewPort_detectFocusForIE );