Changeset 1260 for trunk/modules/InternetExplorer/InternetExplorer.js
- Timestamp:
- 05/11/10 07:31:04 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/InternetExplorer/InternetExplorer.js
r1259 r1260 363 363 // certainly the buggiest browser in the world and I 364 364 // 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 366 374 case "Control": 367 375 return range.item(0); … … 448 456 * @returns Range 449 457 */ 450 Xinha.prototype.saveSelection = function( )451 { 452 return this.createRange( this.getSelection())458 Xinha.prototype.saveSelection = function(sel) 459 { 460 return this.createRange(sel ? sel : this.getSelection()) 453 461 } 454 462 /**
