id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
351	[patch] getSelectedHTML returns 'undefined' if the selection is an image in IE.	patrick@…	gogo	"Calling createRange with an image being active (ex: after a click on it) returns a controlRange in IE, not a textRange.
Thus, in line 3156 of htmlarea.js :
{{{
existing = range.htmlText
}}}
existing becomes undefined.

I've made a dirty hack catching length of the range to detect the existence of a controlRange and return the outerHTML of it's first item :

{{{
existing = (range.length == 1) ? range(0).outerHTML : range.htmlText;
}}}

There should be a better way to do it :)"	defect	closed	normal	Version 1.0	Xinha Core	trunk	normal	fixed		
