Ignore:
Timestamp:
05/11/10 12:31:04 (9 years ago)
Author:
gogo
Message:

#1471 and #1508 Better fix for IE8 TableOperations? (and others) and editing inside absolute positioned elements.

File:
1 edited

Legend:

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

    r1259 r1260  
    363363      // certainly the buggiest browser in the world and I 
    364364      // wonder, God, how can Earth stand it? 
    365       return range.parentElement(); 
     365      try 
     366      { 
     367        return range.parentElement(); 
     368      } 
     369      catch(e) 
     370      { 
     371        return this._doc.body; // ?? 
     372      } 
     373       
    366374    case "Control": 
    367375      return range.item(0); 
     
    448456 * @returns Range 
    449457 */ 
    450 Xinha.prototype.saveSelection = function() 
    451 { 
    452   return this.createRange(this.getSelection()) 
     458Xinha.prototype.saveSelection = function(sel) 
     459{ 
     460  return this.createRange(sel ? sel : this.getSelection()) 
    453461} 
    454462/**  
Note: See TracChangeset for help on using the changeset viewer.