OSDN Git Service

Version 0.6.23, remove AbstractBox(AbstractDisplayContainer), working ie-filter-fix.
[pettanr/clientJs.git] / 0.6.x / js / dom / 10_XDom.js
index 4e7fc31..2e6cbfa 100644 (file)
@@ -56,7 +56,7 @@
                                \r
                        },\r
                        _init : function(){\r
-                               var s, size, b, x;\r
+                               var s, size;\r
                                if( X.Dom.Event.DOM_PRE_INIT <= X.Dom.readyState ) return X.Callback.UN_LISTEN;\r
                                if( s = X.Dom._script ){\r
                                        s.parentNode.removeChild( s );\r
@@ -118,7 +118,9 @@ X.Dom.cleanupTagNames     = 'noscript,noframes,comment,!,noembed,nolayer'.split(
 X.Dom.skipCleanupTagNames = 'pre,textarea,code,kbd,samp,xmp,plaintext,listing'.split( ',' );\r
                \r
 X.Dom.cleanupWhiteSpace = function( text ){\r
-       var _ = ' ', __ = '  ', c09 = String.fromCharCode( 9 ), c10 = String.fromCharCode( 10 );\r
+       var _ = ' ', __ = '  ', c1310 = String.fromCharCode( 13 ) + String.fromCharCode( 10 );\r
+       //text.indexOf( c1310 ) !== -1 && ( text = text.split( c1310 ).join( _ ) );\r
+       //text.indexOf( c32 ) !== -1 && ( text = text.split( c32 ).join( _ ) );\r
        text.indexOf( '\r\n' ) !== -1 && ( text = text.split( '\r\n' ).join( _ ) );\r
        text.indexOf( '\n\r' ) !== -1 && ( text = text.split( '\n\r' ).join( _ ) );\r
        text.indexOf( '\t' )   !== -1 && ( text = text.split( '\t' ).join( _ ) );\r
@@ -126,8 +128,6 @@ X.Dom.cleanupWhiteSpace = function( text ){
        text.indexOf( '\n' )   !== -1 && ( text = text.split( '\n' ).join( _ ) );\r
        text.indexOf( '\f' )   !== -1 && ( text = text.split( '\f' ).join( _ ) );\r
        text.indexOf( '\b' )   !== -1 && ( text = text.split( '\b' ).join( _ ) );\r
-       text.indexOf( c09 )    !== -1 && ( text = text.split( c09 ).join( _ ) );\r
-       text.indexOf( c10 )    !== -1 && ( text = text.split( c10 ).join( _ ) );\r
        while( text.indexOf( __ ) !== -1 ){\r
                text = text.split( __ ).join( _ );\r
        };\r