One of my clients discovered an error when they were doing some content editing on their site. When changing some of the content, font's, font size, color the editor would hang and an unresponsive script message would appear or just hang.
To reproduce this problem…
STEP 1: Paste this HTML (I would post this as a code block but I get an error in the code insert tool. See bottom of post for this error)
<font lang="JA" color="#6600c0" size="4" face="ArialMT"><font lang="JA" color="#6600c0" size="4" face="ArialMT"><font lang="JA" color="#6600c0" size="4" face="ArialMT"><strong><font color="#ffffff" size="5" face="TrajanPro-Bold"><font color="#ffffff" size="5" face="TrajanPro-Bold"><font color="#ffffff" size="5" face="TrajanPro-Bold">
<p align="left">PHYSICIAN EDUCATION WORKSHOP</p>
</strong></font></font></font><font lang="JA" color="#ffffff" size="2" face="ArialMT"><font lang="JA" color="#ffffff" size="2" face="ArialMT"><font lang="JA" color="#ffffff" size="2" face="ArialMT">
<p align="left">PARK HYATT HOTEL, TORONTO, ON / SATURDAY, APRIL 10</font></font></font><font lang="JA" color="#ffffff" size="1" face="ArialMT"><font lang="JA" color="#ffffff" size="1" face="ArialMT"><font lang="JA" color="#ffffff" size="1" face="ArialMT">TH</font></font></font><font lang="JA" color="#ffffff" size="2" face="ArialMT"><font lang="JA" color="#ffffff" size="2" face="ArialMT"><font lang="JA" color="#ffffff" size="2" face="ArialMT">, 2010 – 8am-6pm</p>
</font></font></font><strong><font color="#ffffff" size="2" face="Arial-BoldMT"><font color="#ffffff" size="2" face="Arial-BoldMT"><font color="#ffffff" size="2" face="Arial-BoldMT">
<p>BIO-IDENTICAL HORMONE REPLACEMENT THERAPY FOR MEN & WOMEN</p>
</strong></font></font></font>
<div align="left"><br />
</font></font></font><strong><font size="1" face="Arial-BoldMT"><font size="1" face="Arial-BoldMT">Mark L. Gordon, M.D., FAAFP </strong></font></font><font lang="JA" size="1" face="ArialMT"><font lang="JA" size="1" face="ArialMT">– </font></font><em><font size="1" face="Arial-ItalicMT"><font size="1" face="Arial-ItalicMT">Founder & Medical Director of Millennium Health Centers, Inc., Encino, CA</div>
</em></font></font><font lang="JA" color="#6600c0" size="4" face="ArialMT"><font lang="JA" color="#6600c0" size="4" face="ArialMT"><font lang="JA" color="#6600c0" size="4" face="ArialMT">
<p align="left">▪ </font></font></font><strong><font size="1" face="Arial-BoldMT"><font size="1" face="Arial-BoldMT">Sangeeta Pati, M.D., FACOG </strong></font></font><font lang="JA" size="1" face="ArialMT"><font lang="JA" size="1" face="ArialMT">– </font></font><em><font size="1" face="Arial-ItalicMT"><font size="1" face="Arial-ItalicMT">Founder & Medical Director of the SaJune Medical Center, Orlando, FL</p>
</em></font></font><font lang="JA" color="#6600c0" size="4" face="ArialMT"><font lang="JA" color="#6600c0" size="4" face="ArialMT"><font lang="JA" color="#6600c0" size="4" face="ArialMT">
<p align="left">▪ </font></font></font><strong><font size="1" face="Arial-BoldMT"><font size="1" face="Arial-BoldMT">Marla Ahlgrimm R.Ph. </strong></font></font><font lang="JA" size="1" face="ArialMT"><font lang="JA" size="1" face="ArialMT">– </font></font><em><font size="1" face="Arial-ItalicMT"><font size="1" face="Arial-ItalicMT">Founder & CEO - Women’s Health America, Inc. The RESTORE Program, Madison, WI</p>
</em></font></font><strong><font color="#6600c0" size="1" face="Arial-BoldMT"><font color="#6600c0" size="1" face="Arial-BoldMT"><font color="#6600c0" size="1" face="Arial-BoldMT">
<p align="left">WORKSHOP FEE</p>
</strong></font></font></font><font lang="JA" size="1" face="ArialMT"><font lang="JA" size="1" face="ArialMT">
<p align="left">$899.00 CDN + taxes</p>
</font></font><strong><font size="1" face="Arial-BoldMT"><font size="1" face="Arial-BoldMT">
<p align="left">Early Bird Discount </strong></font></font><font lang="JA" size="1" face="ArialMT"><font lang="JA" size="1" face="ArialMT">– </font></font><strong><font size="1" face="Arial-BoldMT"><font size="1" face="Arial-BoldMT">SAVE $125</p>
</font></font><font color="#f60026" size="1" face="Arial-BoldMT"><font color="#f60026" size="1" face="Arial-BoldMT"><font color="#f60026" size="1" face="Arial-BoldMT">
<p align="left">REGISTER BEFORE MARCH 1</font></font></font><font color="#f60026" size="1" face="Arial-BoldMT"><font color="#f60026" size="1" face="Arial-BoldMT"><font color="#f60026" size="1" face="Arial-BoldMT">st</p>
</font></font></font><font color="#f60026" size="1" face="Arial-BoldMT"><font color="#f60026" size="1" face="Arial-BoldMT"><font color="#f60026" size="1" face="Arial-BoldMT">
<p align="left">Limited Seating!!</p>
</strong></font></font></font><em><font size="1" face="Arial-ItalicMT"><font size="1" face="Arial-ItalicMT">
<p>**Group of 3 or more attendees, receive a group discount.</p>
</em></font></font>
STEP 2: In “normal” mode highlight the text at the top that is a light color (PHYSICIAN EDUCATION WORKSHOP PARK HYATT HOTEL, TORONTO, ON / SATURDAY, APRIL 10TH, 2010 – 8am-6pm BIO-IDENTICAL HORMONE REPLACEMENT THERAPY FOR MEN & WOMEN).
STEP 3: Go to the text color button click and select “automatic” this will cause the editor to crash. I’ve tested this locally and in the online demo. Both crash when doing the above. (Script is causing internet explorer to run slowing, stop running script)
Thanks,
Lee
This is the error for the code insert tool:
Webpage error details
Lee Harris
Programmer & Database Developer
HLB System Solutions
50 Malcolm Road
Guelph, Ontario N1K 1A9
Phone: 519-822-3450 Ext. 239
Fax: 519-822-8861
http://www.hlbsolutions.com
Disclaimer: The contents of this post are provided "as is". There is not warranty on code found in this post.