Changeset 658


Ignore:
Timestamp:
01/15/07 14:23:06 (12 years ago)
Author:
gogo
Message:

ticket:831 stop empty anchors from being removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r655 r658  
    28132813    // @todo : check if this is quicker 
    28142814    //  if (!['A','SPAN','B','STRONG','I','EM','FONT'].contains(el.tagName) && !el.firstChild) 
    2815     if ( /^(a|span|b|strong|i|em|font)$/i.test(el.tagName) && !el.firstChild) 
     2815    if ( /^(span|b|strong|i|em|font|div|p)$/i.test(el.tagName) && !el.firstChild) 
    28162816    { 
    28172817      Xinha.removeFromParent(el); 
Note: See TracChangeset for help on using the changeset viewer.