﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11021	Widgets: Error thrown with elementspath #2	Marek Lewandowski		"After talk with PK we decided to create yet separate ticket for original issue reported in #10869, since issue required more sophisticated solution.

1. Open samples/plugins/image2/image2.html
2. Select a widget.
3. In elementspath, click ""body""
4. An error is thrown (Chrome, Firefox): 
 {{{
Uncaught IndexSizeError: Index or size was negative, or greater than the allowed value. 
 }}}
 IE9: 
 {{{
SCRIPT5022: DOM Exception: INDEX_SIZE_ERR (1) 
}}}

additional info:[[BR]]
1. Issue is caused because {{{hiddenSelectionContainer}}} is not removed in right time, and created selection has offset bigger by one.
2. {{{editor.getSelection().reset()}}} call placed before {{{range.selectNodeContents( element )}}} statement did the job, however it should be placed somewhere deeper to be reused. Maybe selectNodeContents itself?
3. this issue is originated from #10869"	Bug	confirmed	Normal	CKEditor 4.3.1	General	4.3 Beta			
