[wp-trac] [WordPress Trac] #8213: WP text formatting functions handle block-level INS tag incorrectly

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 14 14:51:09 GMT 2008

#8213: WP text formatting functions handle block-level INS tag incorrectly
 Reporter:  misieg772  |       Owner:  anonymous                  
     Type:  defect     |      Status:  new                        
 Priority:  normal     |   Milestone:  2.7                        
Component:  General    |     Version:                             
 Severity:  normal     |    Keywords:  formatting ins wpautop html
 From W3C documentation:

 "INS and DEL are used to markup sections of the document that have been
 inserted or deleted with respect to a different version of a document
 (e.g., in draft legislation where lawmakers need to view the changes).

 These two elements are unusual for HTML in that they may serve as either
 BLOCK-LEVEL or INLINE elements (but not both). They may contain one or
 more words within a paragraph or contain one or more block-level elements
 such as paragraphs, lists and tables."


 When I want to use INS tag as BLOCK-LEVEL element (to wrap to paragraphs
 for example) wrong HTML is produced:

 <p><ins datetime="2008-11-14T14:45:27+00:00">First paragraph.</p>
 <p>Second paragraph.</ins></p>

 Correct HTML should look like this:

 <ins datetime="2008-11-14T14:45:27+00:00"><p>First paragraph.</p>
 <p>Second paragraph.</p></ins>

 I think the same sitiuation occurs for DEL tag.

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

More information about the wp-trac mailing list