﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
7770	JS errors when selecting noneditable text in FF4	Jakub Ś		"I have found this bug when testing #7694

 1. Open Ajax sample 
 2. Copy the below code and paste it in source mode: 
{{{
<p>paragraph [one</p>
<div contenteditable=""false"">none editable block</div>
<p>paragraph] two</p>
}}}
 3. Switch to WYSIWYG mode
 4. Select whole ""none editable block"" text with a mouse and click on a size combo box. The JS error **may** be thrown
 5. If size combo is shown and no error is not thrown, than select size, click on font combo select a font, deselect the text by clicking on “paragraph] two”, select whole text again and click on size combo.
 6. If still can not reproduce it, try different combinations with selecting text, deselecting text, clicking on size combo, clicking on font combo. Sooner or later the error should be thrown.




The error is:

Location: _source/plugins/wysiwygarea/plugin.js
Message:
control.is is not a function
 if ( control.is( 'img', 'hr', 'input', 'textarea', 'select' ) ) 
plugin.js (Line 653)

Message:
ev.getTarget().is is not a function
 if ( ev.getTarget().is( 'a' ) && ev.$.button != 2 ) 
plugin.js (Line 682)

[[BR]]
[[BR]]
I have managed to reproduce it only in FF4. 
"	Bug	closed	Normal		General	3.0	fixed	Firefox4	
