OSDN Git Service

Version 0.6.222, Fix the bug of X.TextRange.
[pettanr/clientJs.git] / 0.6.x / js / 02_dom / 20_XNode.js
index bb392e3..8ed979d 100644 (file)
@@ -1425,7 +1425,7 @@ function X_Node_startUpdate( time ){
        // 強制的に再描画を起こす, 但し activeElement からフォーカスが外れるため復帰する
        // IE5mode win10 で 確認
        if( X_UA[ 'IE5' ] ){
-               active = document.activeElement;
+               active = FocusUtility_getFocusedElement();
                X_elmBody.style.visibility = 'hidden';
        };
 
@@ -1438,7 +1438,7 @@ function X_Node_startUpdate( time ){
 
        if( X_UA[ 'IE5' ] ){
                X_elmBody.style.visibility = '';
-               active && active.parentNode && active.focus();
+               active && active.parentNode && FocusUtility_setTemporarilyFocus( active );
        };
        
        if( X_Node_updateReservedByReleaseGPU ){
@@ -1530,7 +1530,7 @@ var X_Node__commitUpdate =
                                if( !that[ '_tag' ] ){
                                        that[ '_flags' ] &= X_Node_BitMask_RESET_DIRTY;
                                        if( X_UA[ 'IE' ] < 8 ){
-                                               // \n -> \r\n に変換しないと pre タグで開業されない  win10ie7(ie11 emu) で確認
+                                               // \n -> \r\n に変換しないと pre タグで改行されない  win10ie7(ie11 emu) で確認
                                                elm = document.createTextNode( X_String_chrReferanceTo( that[ '_text' ] ).split( '\n' ).join( X_String_CRLF ) );
                                        } else {
                                                elm = document.createTextNode( X_String_chrReferanceTo( that[ '_text' ] ) );
@@ -1811,7 +1811,7 @@ var X_Node__updateRawNode =
                        // textNode
                        if( !that[ '_tag' ] ){
                                if( X_UA[ 'IE' ] < 8 ){
-                                       // \n -> \r\n に変換しないと pre タグで開業されない  win10ie7(ie11 emu) で確認
+                                       // \n -> \r\n に変換しないと pre タグで改行されない  win10ie7(ie11 emu) で確認
                                        elm.data = X_String_chrReferanceTo( that[ '_text' ] ).split( '\n' ).join( X_String_CRLF );
                                } else {
                                        elm.data = X_String_chrReferanceTo( that[ '_text' ] );