﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2087	Error loadig fckstyles.xml	Bart McLeod		"If I download the nightly build or any other 2.6rc version so far, I will get an error stating fckstyles.xml could not be loaded and if I would like to see the response details.

The response detail shows the contents of fckstyles.xml in good condition. It has a status of 200.

I know that this bug has been reported earlier by someone else, and that you did not look into it further, because it is working ok for you. For others, however, it is definitely NOT ok.

What I did as a solution is open internals/classes/fckxml_ie.js (the error applies to the gecko version as well!). I swapped the conditions that check for the status.


{{{
//the if conditions below are swapped compared to your version
		if ( oXmlHttp.status == 0 && oXmlHttp.readyState == 4 )
			this.DOMDocument = oXmlHttp.responseXML ;
		else if ( oXmlHttp.status == 200 || oXmlHttp.status == 304 )
		{
			this.DOMDocument = FCKTools.CreateXmlObject( 'DOMDocument' ) ;
			this.DOMDocument.async = false ;
			this.DOMDocument.resolveExternals = false ;
			this.DOMDocument.loadXML( oXmlHttp.responseText ) ;
		}
}}}

I do not know if the swapping is ok, I suspect not. But it works.
"	Bug	closed	Must have (possibly next milestone)		Core : Styles	FCKeditor 2.6 RC	duplicate		
