﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3066	bug in find replace plugin on releace 2.6.4	Avi		"bug in find replace plugin on releace 2.6.4
==============================================

when try to find or replace text, when I press the find button to find the next occurrence of the word, there is a javascript error.

The bug happens on Highlight function in fck_replace.html
I trucked the code and the source of the error is in :
fckdomrange.js on function _UpdateElementInfo line 47 :
-------
this.StartNode			= eStart.nodeType == 3 ? eStart : eStart.childNodes[ innerRange.startOffset ] ;
-------
eStart.childNodes[ innerRange.startOffset ] is undefined 

Note - it's not happening in all sorts of texts in the editor

In order to reproduce the bug, please follow the following steps

1. Please insert the following html code into the fck editor
======================
<p><font face=""arial"" size=""2"">Avi<br />
Avi <br />
Avi</font></p>
<p>&nbsp;</p>
======================

2. go to design mode
3. press the find (or replace) button
4. search the word 'avi'
5. press the search button 3 times

You get the following error :
Line 266
'StartNode.nodeType' is null or not an object

Please try to fix it, as soon as you can.
I will appreciate it if you will update me in email

Avi@Dsknowledge.com

Thanks, Avi

"	Bug	closed	Normal		General	FCKeditor 2.6.4	invalid		
