#3551: FCK Editor 2.6.4 IE8 HTML4 scrolling errors
-----------------------+----------------------------------------------------
 Reporter:  harrytheb  |       Owner:                 
     Type:  Bug        |      Status:  new            
 Priority:  Normal     |   Milestone:                 
Component:  General    |     Version:  FCKeditor 2.6.4
 Keywords:             |  
-----------------------+----------------------------------------------------
 Descriptive summary:

 JavaScript errors appearing when scrolling the editor window in IE8, when
 clicking on the scrollbar. The error only occurs when the doctype is set
 to HTML4 (FCKConfig.DocType).

 Steps to reproduce:

 It is quite easy to reproduce - edit
 fckeditor\_samples\html\assets\sample15.config.js and add the line:

   FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>';

 Then run sample 15 and put some new lines in to make a scrollbar appear in
 the editing area. If you click and drag the scrollbar, IE8 throws an
 exception and asks if you want to debug the web page. The error message
 given is "'nodeName' is null or not an object".

 Browser name and OS:
 Bug appears in: IE8, Windows XP or Vista.
 Bug does not appear: IE6 or IE7. Also does not appear in IE8 with no
 doctype, a doctype of HTML3.2 or XHTML1/1.1. Only HTML 4!

 Fix:

 The problem appears to be in fck_ie.js, function Doc_OnMouseDown, line 451

         if ( e.nodeName.IEquals( 'input' ) && e.type.IEquals( ['radio',
 'checkbox'] ) && !e.disabled )


 If this is changed to check that nodeName is defined first, then the
 errors go away, i.e:

         if (typeof e.nodeName != 'undefined' && e.nodeName.IEquals(
 'input' ) && e.type.IEquals( ['radio', 'checkbox'] ) && !e.disabled )

 This bug has not been fixed on the nightly build.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3551>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
FCKeditor-Trac mailing list
FCKeditor-Trac@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to