﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5930	htmldataprocessor: fix for convert style attributes to lowercase in IE	Juergen	Sa'ar Zac Elias	"File: _source/plugins/htmldataprocessor/plugin.js (Starting line 240)

The function to convert ALL styles to lowercase causing a problem with capital urls:

{{{
background-image: url(http://somedomain/SomeBackground.jpg);
}}}

is converted to:

{{{
background-image: url(http://somedomain/somebackground.jpg);
}}}

On a windows server, this is not the biggest problem, but a linux server won't find that file.

Heres the possible fix:

{{{
	if ( CKEDITOR.env.ie )
	{
		// IE outputs style attribute in capital letters. We should convert
		// them back to lower case.
		defaultHtmlFilterRules.attributes.style = function( value, element )
		{
			var res = value.match(/([a-z-]+):/gi);
			if (res) {
				for (var i = 0; i < res.length; ++i) {
					value = value.replace(res[i], res[i].toLowerCase());
				}
				return value;
			}
			else {
				return value.toLowerCase();
			}
		};
	}
}}}

Greetings,
Juergen

"	Bug	closed	Normal	CKEditor 3.5.1	Core : Output Data	3.0	fixed	IE	ckeditor@…
