Changes between Initial Version and Version 1 of Ticket #6340
- Timestamp:
- Sep 23, 2010, 3:29:08 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6340
- Property Keywords Chrome added
-
Property
Status
changed from
new
toconfirmed
-
Ticket #6340 – Description
initial v1 1 1 Steps to reproduce:[[BR]] 2 2 1. From Google Chrome open the CKEditor demo page (http://ckeditor.com/demo) and go to the Source view.[[BR]] 3 2. Paste the following malformed HTML:[[BR]] 4 <span id="sample" overflow="hidden" ;"="" style="font-size:8pt; font-weight:normal; font-style:normal; color:#808080; background:transparent">Text</span>[[BR]] 5 3. Switch to Standard view, so the HTML gets parsed.[[BR]] 3 2. Paste the following malformed HTML: 4 {{{ 5 <span id="sample" overflow="hidden" ;"="" style="font-size:8pt; font-weight:normal; font-style:normal; color:#808080; background:transparent">Text</span> 6 }}} 7 3. Switch to WYSIWYG mode, so the HTML gets parsed.[[BR]] 6 8 [[BR]] 7 9 After following these steps, the browser tab should hang.[[BR]] … … 12 14 [[BR]] 13 15 I debugged the problem and found out that the problem is in this regular expression that is used to parse the HTML:[[BR]] 14 [[BR]] 15 htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g') [[BR]]16 [[BR]] 16 {{{ 17 htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g') 18 }}} 17 19 Thanks in advance.