rem: var oAtt ; if ( oAtt = oEmbed.getAttribute( 'scale' ) ) oCloned.setAttribute( 'scale', oAtt ) ; if ( oAtt = oEmbed.getAttribute( 'play' ) ) oCloned.setAttribute( 'play', oAtt ) ; if ( oAtt = oEmbed.getAttribute( 'loop' ) ) oCloned.setAttribute( 'loop', oAtt ) ; if ( oAtt = oEmbed.getAttribute( 'menu' ) ) oCloned.setAttribute( 'menu', oAtt ) ; if ( oAtt = oEmbed.getAttribute( 'wmode' ) ) oCloned.setAttribute( 'wmode', oAtt ) ; if ( oAtt = oEmbed.getAttribute( 'quality' ) ) oCloned.setAttribute( 'quality', oAtt ) ; 
add: var aAttributes = [ 'scale', 'play', 'loop', 'menu', 'wmode', 'quality' ] ; for ( var iAtt = 0 ; i < aAttributes.length ; i++ ) { var oAtt = oEmbed.getAttribute( aAttributes[iAtt] ) ; if ( oAtt ) oCloned.setAttribute( aAttributes[iAtt], oAtt ) ; } 
context: FCKFlashProcessor.ProcessDocument = function( document ){	/*	Sample code:	This is some <embed src="/UserFiles/Flash/Yellow_Runners.swf"></embed><strong>sample text</strong>. You are&nbsp;<a name="fred"></a> using <a href="http://www.fckeditor.net/">FCKeditor</a>.	*/	var aEmbeds = document.getElementsByTagName( 'EMBED' ) ;	var oEmbed ;	var i = aEmbeds.length - 1 ;	while ( i >= 0 && ( oEmbed = aEmbeds[i--] ) )	{		if ( oEmbed.src.endsWith( '.swf', true ) )		{			var oCloned = oEmbed.cloneNode( true ) ;						// On IE, some properties are not getting clonned properly, so we 			// must fix it. Thanks to Alfonso Martinez.			if ( FCKBrowserInfo.IsIE )			{				var oAtt ;				if ( oAtt = oEmbed.getAttribute( 'scale' ) ) oCloned.setAttribute( 'scale', oAtt ) ;				if ( oAtt = oEmbed.getAttribute( 'play' ) ) oCloned.setAttribute( 'play', oAtt ) ;				if ( oAtt = oEmbed.getAttribute( 'loop' ) ) oCloned.setAttribute( 'loop', oAtt ) ;				if ( oAtt = oEmbed.getAttribute( 'menu' ) ) oCloned.setAttribute( 'menu', oAtt ) ;				if ( oAtt = oEmbed.getAttribute( 'wmode' ) ) oCloned.setAttribute( 'wmode', oAtt ) ;				if ( oAtt = oEmbed.getAttribute( 'quality' ) ) oCloned.setAttribute( 'quality', oAtt ) ;			}					var oImg = FCKDocumentProcessor_CreateFakeImage( 'FCK__Flash', oCloned ) ;			oImg.setAttribute( '_fckflash', 'true', 0 ) ;						FCKFlashProcessor.RefreshView( oImg, oEmbed ) ;			oEmbed.parentNode.insertBefore( oImg, oEmbed ) ;			oEmbed.parentNode.removeChild( oEmbed ) ;//			oEmbed.setAttribute( '_fcktemp', 'true', 0) ;//			oEmbed.style.display = 'none' ;//			oEmbed.hidden = true ;		}	}}
meta: 8533	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8533/30774da157017224af5d9a1b55d04bf21f55a840/fckdocumentprocessor.js/buggy/library/src/webapp/editor/FCKeditor/editor/_source/internals/fckdocumentprocessor.js