﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1889	Switching between source view and normal causes attributes to swap (Gecko)	rekcor		"For example: 
{{{
<img src=""a.gif"" alt=""b />
}}}
 becomes 
{{{
<img alt=""b src=""a.gif"" />
}}}
 when switching two times between normal view and normal view.

This is undesirable behavior, because e.g. user defined regular expressions become unreliable.

The bug is caused by the function FCKXHtml._AppendAttributes in fckxhtml_gecko.js, where it says


{{{
for ( var n = 0 ; n < aAttributes.length ; n++ )
}}}


which should become:


{{{
for ( var n = aAttributes.length-1 ; n >= 0; n-- )
}}}


See also http://www.fckeditor.net/forums/viewtopic.php?f=5&t=4987
"	Bug	closed	Normal		General	FCKeditor 2.5.1	duplicate	Confirmed	
