[wp-trac] [WordPress Trac] #18261: WYSIWYG toolbar 'indent button' produces invalid markup

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 26 19:38:37 UTC 2011


#18261: WYSIWYG toolbar 'indent button' produces invalid markup
--------------------------+-----------------------------
 Reporter:  kingkong954   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  TinyMCE       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 The 'indent' icon on the TinyMCE toolbar is producing invalid markup on
 nested lists. Then, WordPress is attempting to correct it, resulting in a
 very broken list.

 The toolbar is producing this code:

 {{{
 <ul>
 <li>parent list item 1</li>
 <ul>
 <li>child list item 1</li>
 </ul>
 <li>parent list item 2</li>
 </ul>
 }}}


 ...instead of:

 {{{
 <ul>
 <li>parent list item 1
 <ul>
 <li>child list item 1</li>
 </ul>
 </li>
 <li>parent list item 2</li>
 </ul>
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18261>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list