Opened 14 years ago

Last modified 11 years ago

#6340 closed Bug

Google Chrome hangs when CKEditor parses malformed HTML — at Initial Version

Reported by: Nicolás Cardelino Owned by:
Priority: Normal Milestone:
Component: General Version: 3.4.1
Keywords: Chrome Cc:

Description

Steps to reproduce:

  1. From Google Chrome open the CKEditor demo page (http://ckeditor.com/demo) and go to the Source view.
  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>

  1. Switch to Standard view, so the HTML gets parsed.


After following these steps, the browser tab should hang.

CKEditor version: 3.4.1
Browser: Google Chrome 6.0.472.62 (Build oficial 59676)
OS: Ms Windows 7

I debugged the problem and found out that the problem is in this regular expression that is used to parse the HTML:

htmlPartsRegex:new RegExp("<(?:(?:
/([>]+)>)|(?:!--([
S|
s]*?)-->)|(?:([

s>]+)
s*((?:(?:[\"'>]+)|(?:\"[\"]*\")|(?:'[']*'))*)
/?>))",'g')

Thanks in advance.

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy