[wp-trac] [WordPress Trac] #6376: Visual Editor creates invalid Definition Lists

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 25 01:41:36 GMT 2008


#6376: Visual Editor creates invalid Definition Lists
-------------------------+--------------------------------------------------
 Reporter:  fool4christ  |       Owner:  anonymous
     Type:  defect       |      Status:  new      
 Priority:  high         |   Milestone:  2.5      
Component:  TinyMCE      |     Version:  2.5      
 Severity:  normal       |    Keywords:           
-------------------------+--------------------------------------------------
 Creating a post in the plain code editor which includes definition lists
 is easy enough. However, opening them in the visual editor causes
 WordPress to strip out any <p> tags, creating invalid markup.

 What I had coded in the Code editor was something like this, which is
 perfectly valid:

 ====

 <dl>
 <dt>term</dt>
 <dd><p>paragraph</p>
 <p>paragraph2</p></dd>
 </dl>

 ====

 However, the visual editor converts that nice markup to this:

 ====

 <dl> <dt>term</dt> <dd>paragraph

 paragraph2</dd> </dl>

 ====

 When output by WordPress, there is no <p> tag placed between <dd> and
 "paragraph"; however, the "paragraph" does receive a </p> tag, which is
 not balanced.

 Don't know if the same problems occur with ordered and unordered lists,
 but this definitely should be fixed.

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


More information about the wp-trac mailing list