check in fix for 40751 for Kevin Puetzk, r=myself

This commit is contained in:
ben%netscape.com 2006-09-14 05:49:24 +00:00
parent 0c50e26102
commit c29e293101

View File

@ -18,7 +18,7 @@
* Rights Reserved.
*
* Contributor(s):
* - Kevin Puetz (puetz@iastate.edu)
* - Kevin Puetz (puetzk@iastate.edu)
*/
//
@ -296,7 +296,7 @@ function BeginDragContentArea ( event )
var htmlstring = null;
var textstring = null;
var domselection = window.content.getSelection();
if ( domselection && !domselection.isCollapsed)
if ( domselection && !domselection.isCollapsed && domselection.containsNode(event.target,false))
{
// the window has a selection so we should grab that rather than looking for specific elements
// dump(domselection);