﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12964	editable.extractHtmlFromRange tries to extract range twice from a single table cell	Piotrek Koszuliński	Piotrek Koszuliński	"Bug revealed by #11586.

See http://tests.ckeditor.dev:1030/tests/core/editable/getextractselectedhtml#tests%2Fcore%2Feditable%2Fgetextractselectedhtml%20-%20test%20extractHtmlFromRange%3A%20tables%20%2320

Inside helpers.table.deleteRanges( that ); 4 ranges are being removed (they are stored in `that.tableContentsRange`), but two of them are placed in exactly the same spot and other two as well. After the first range of each pair is removed, extraction of the second range on non-IE browsers do nothing (surprisingly) and on IE8-10 it leads to removing nodes outside of the marked table cell. In result of this a bookmark span is removed and hence the error is thrown upon its restoring.

There are two issues here, but only one needs to be fixed. First one is that ranges are duplicated and this is the root of the issue. Second is that `range.extractContents()` does something weird instead of throwing an error, but we can ignore this."	Bug	closed	Normal	CKEditor 4.5.0 Beta	General	4.5.0 Beta	fixed		
