[wp-trac] [WordPress Trac] #10645: auto_p and forms
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 18 16:53:41 UTC 2009
#10645: auto_p and forms
--------------------------+-------------------------------------------------
Reporter: kingjeffrey | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Formatting | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
auto_p will errantly injects paragraph and linebreak tags in certain
circumstances within forms:
`<div>
<label for="select_element">This is a select box placed <select
name="select_element"><option value="1">inline</option</select> with the
label.</label>
</div>`
becomes:
`<div>
<label for="select_element">This is a select box that is placed<br />
<select name="select_element"><option value="1">inline</option><option
value="2">inside</option><option value="3">within</option></select>
<p>inline with the label.</label>
</div>`
linebreak and paragraph tags should never be inserted inside a label. In
this case they are not even properly paired. It would be nice if the
surrounding div was identified and no tags were inserted, although if a
paragraph tag wrapped the whole thing, it would not be the end of the
world.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10645>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list