Changeset 929 for trunk/modules/Gecko


Ignore:
Timestamp:
01/09/08 21:10:59 (12 years ago)
Author:
ray
Message:
  • #1115 Dialogs not working on firefox 3
  • #1127 InsertImage? and probably other things using insertNodeAtSelection() not working in FF3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/Gecko/Gecko.js

    r901 r929  
    396396Xinha.prototype.insertNodeAtSelection = function(toBeInserted) 
    397397{ 
     398  if ( toBeInserted.ownerDocument != this._doc ) // as of FF3, Gecko is strict regarding the ownerDocument of an element 
     399  { 
     400    try  
     401        { 
     402                toBeInserted = this._doc.adoptNode( toBeInserted ); 
     403        } catch (e) {} 
     404  } 
    398405  var sel = this.getSelection(); 
    399406  var range = this.createRange(sel); 
     
    404411  var pos = range.startOffset; 
    405412  var selnode = toBeInserted; 
     413   
    406414  switch ( node.nodeType ) 
    407415  { 
Note: See TracChangeset for help on using the changeset viewer.