﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6340	Google Chrome hangs when CKEditor parses malformed HTML	Nicolás Cardelino		"Steps to reproduce:[[BR]]
1. From Google Chrome open the CKEditor demo page (http://ckeditor.com/demo) and go to the Source view.[[BR]]
2. Paste the following malformed HTML:
{{{
<span id=""sample"" overflow=""hidden"" ;""="""" style=""font-size:8pt; font-weight:normal; font-style:normal; color:#808080; background:transparent"">Text</span>
}}}
3. Switch to WYSIWYG mode, so the HTML gets parsed.[[BR]]
[[BR]]
After following these steps, the browser tab should hang.[[BR]]
[[BR]]
CKEditor version: 3.4.1[[BR]]
Browser: Google Chrome 6.0.472.62 (Build oficial 59676)[[BR]]
OS: Ms Windows 7[[BR]]
[[BR]]
I debugged the problem and found out that the problem is in this regular expression that is used to parse the HTML:[[BR]]
{{{
htmlPartsRegex:new RegExp(""<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\""'>]+)|(?:\""[^\""]*\"")|(?:'[^']*'))*)\\/?>))"",'g')
}}}
Thanks in advance.
"	Bug	closed	Normal		General	3.4.1	fixed	Chrome	
