﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
8644,wpautop breaks <fieldset> and <legend> markup,MarkBlankestijn,Sam_a,"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);
}}}",defect (bug),closed,normal,2.9,Formatting,2.7,normal,fixed,needs-patch,
