﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14546	Widget code should be more resilient about changes in DOM	Alfonso Martínez de Lizarrondo		"Load http://ckeditor.com/demo#widgets, go to the image2 demo and with the dev tools, select the img element and delete it.
Now trying to show the HTML (or save the data) fails because the widget code expects that everything is in perfect shape and it can't find the image.

The code should have some safety checks so it doesn't throw an exception and instead it just is able to handle the rest of the code, removing all the conflicting data about the broken widget (there's no need to try to recover, this is an exceptional thing and the only important thing is to don't crash).
eg:

{{{
if ( widgetElement.attributes --> if ( widgetElement && widgetElement.attributes

if (!el)
return;

etc...
}}}
"	New Feature	closed	Normal		UI : Widgets		expired		
