Changeset 397


Ignore:
Timestamp:
10/22/05 04:36:22 (14 years ago)
Author:
gogo
Message:

Apply #440

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r396 r397  
    28182818  if (HTMLArea.is_ie) { 
    28192819    switch (sel.type) { 
    2820         case "Text": 
     2820        case "Text":          
     2821      // try to circumvent a bug in IE: 
     2822      // the parent returned is not always the real parent element     
     2823      var parent = range.parentElement(); 
     2824      while (true) 
     2825      { 
     2826        var TestRange = range.duplicate(); 
     2827        TestRange.moveToElementText(parent); 
     2828        if (TestRange.inRange(range)) break; 
     2829        if ((parent.nodeType != 1) || (parent.tagName.toLowerCase() == 'body')) break; 
     2830        parent = parent.parentElement; 
     2831      }; 
     2832      return parent; 
    28212833        case "None": 
    28222834      // It seems that even for selection of type "None", 
Note: See TracChangeset for help on using the changeset viewer.