[wp-trac] [WordPress Trac] #11947: wpautop inserts line break elements in select element breaking XHTML 1.1 Strict compatibility
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 31 09:31:04 UTC 2010
#11947: wpautop inserts line break elements in select element breaking XHTML 1.1
Strict compatibility
--------------------------+-------------------------------------------------
Reporter: akerem | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: 3.0
Component: Formatting | Version: 2.9.1
Severity: normal | Keywords: wpautop, line break, form, select, option
--------------------------+-------------------------------------------------
Comment(by dd32):
Confirmed bug in trunk:
{{{
$in = "<select>
<option>Value</option>
</select>";
$out = wpautop($in);
var_dump($out);
?>
string '<select>
<option>Value</option><br />
</select>
' (length=48)
}}}
Results after:
{{{
string '<select>
<option>Value</option>
</select>
' (length=48)
}}}
Note: If anyone is confused, that patch is reversed, Its the addition of
option, not the removal.. had me perplexed for a moment there.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11947#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list