Changeset 497


Ignore:
Timestamp:
04/30/06 09:20:29 (8 years ago)
Author:
gogo
Message:

Fix for ticket:732 (and maybe other subtle bugs in this vein) -
essentially in Moz _activeElement woudl return the parent element
when a partial text was returned. I THINK that this fixes the
function so it performs in the intended way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r496 r497  
    35543554    // correct, we possibly should do a simlar check to IE? 
    35553555    if ( !sel.isCollapsed ) 
    3556     { 
     3556    {       
    35573557      if ( sel.anchorNode.childNodes.length > sel.anchorOffset && sel.anchorNode.childNodes[sel.anchorOffset].nodeType == 1 ) 
    35583558      { 
     
    35653565      else 
    35663566      { 
    3567         return sel.anchorNode.parentNode; 
     3567        return null; // return sel.anchorNode.parentNode; 
    35683568      } 
    35693569    } 
     
    35943594 
    35953595    if ( typeof sel.isCollapsed != 'undefined' ) 
    3596     { 
     3596    {       
    35973597      return sel.isCollapsed; 
    35983598    } 
Note: See TracChangeset for help on using the changeset viewer.