[wp-trac] [WordPress Trac] #8644: Include <fieldset> and <legend> in formatting.php

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 17 11:32:52 GMT 2008


#8644: Include <fieldset> and <legend> in formatting.php
-----------------------------+----------------------------------------------
 Reporter:  MarkBlankestijn  |       Owner:  anonymous
     Type:  enhancement      |      Status:  new      
 Priority:  normal           |   Milestone:  2.8      
Component:  General          |     Version:           
 Severity:  normal           |    Keywords:           
-----------------------------+----------------------------------------------
 I use the fieldset (and legend) tag in my posts. These tags aren't parsed
 correctly by Wordpress and produces invalid XHTML. I'm not sure if it's
 correct, but this is how I fixed it:

 '''formatting.php'''

 Line 120; add fieldset and legend:
 {{{
 $allblocks =
 '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|map|area|blockquote|fieldset|legend|address|math|style|input|p|h[1-6]|hr)';
 }}}

 Add the following line, e.g. below line 139:
 {{{
 $pee = str_replace('</fieldset>', '</p></fieldset>', $pee);
 }}}

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


More information about the wp-trac mailing list