﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3551	FCK Editor 2.6.4 IE8 HTML4 scrolling errors	Harry		"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."	Bug	closed	Normal		General	FCKeditor 2.6.4	duplicate		
