[wp-trac] Re: [WordPress Trac] #8644: wpautop breaks <fieldset> and
<legend> markup
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 18 21:05:20 GMT 2009
#8644: wpautop breaks <fieldset> and <legend> markup
-------------------------------+--------------------------------------------
Reporter: MarkBlankestijn | Owner: Sam_a
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 2.8
Component: General | Version: 2.7
Severity: normal | Resolution:
Keywords: has-patch wpautop |
-------------------------------+--------------------------------------------
Changes (by Sam_a):
* summary: wpautop should recognize <fieldset> and <legend> as block
elements => wpautop breaks <fieldset> and
<legend> markup
Comment:
Patch stops wpautop from wrapping `fieldset` and `legend` in paragraph
tags.
But I still see invalid markup when text inside the `fieldset` has less
than 2 newlines above and below it; wpautop inserts `<p>` but omits
`</p>`:
{{{
<?php echo wpautop("<fieldset><legend>Legend</legend>Text inside
fieldset</fieldset>"); ?>
}}}
{{{
<fieldset>
<legend>Legend</legend>
<p>Text inside fieldset</fieldset>
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/8644#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list