Changeset 3778 in subversion


Ignore:
Timestamp:
Jun 23, 2010 2:57:45 AM (3 years ago)
Author:
alec
Message:
  • Improve parsing of styled empty tags in HTML messages (#1486812)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r3773 r3778  
    22=========================== 
    33 
     4- Improve parsing of styled empty tags in HTML messages (#1486812) 
    45- Add %dc variable support in base_dn/bind_dn config (#1486779) 
    56- Add button to hide/unhide the preview pane (#1484215) 
  • trunk/roundcubemail/program/lib/washtml.php

    r3721 r3778  
    9090 
    9191  /* Block elements which could be empty but cannot be returned in short form (<tag />) */ 
    92   static $block_elements = array('div', 'p', 'pre', 'blockquote', 'a', 'font'); 
     92  static $block_elements = array('div', 'p', 'pre', 'blockquote', 'a', 'font', 'center', 'table', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ol', 'dl'); 
    9393   
    9494  /* State for linked objects in HTML */ 
     
    227227          $content = $this->dumpHtml($node); 
    228228          $dump .= '<' . $tagName . $this->wash_attribs($node) . 
    229             ($content != '' || isset($this->_block_elements[$tagName]) ? ">$content</$tagName>" : ' />'); 
     229            // create closing tag for block elements, but also for elements 
     230            // with content or with some attributes (eg. style, class) (#1486812) 
     231            ($content != '' || $node->hasAttributes() || isset($this->_block_elements[$tagName]) ? ">$content</$tagName>" : ' />'); 
    230232        } 
    231233        else if (isset($this->_ignore_elements[$tagName])) { 
Note: See TracChangeset for help on using the changeset viewer.