[wp-trac] [WordPress Trac] #11024: invalidate xhtml output from both tinymce and wpautop
WordPress Trac
wp-trac at lists.automattic.com
Sat Oct 24 08:22:27 UTC 2009
#11024: invalidate xhtml output from both tinymce and wpautop
--------------------------+-------------------------------------------------
Reporter: thomask | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: Unassigned
Component: Validation | Version: 2.8.4
Severity: trivial | Keywords: wpautop, xhtml
--------------------------+-------------------------------------------------
if you have anchor just before the closing div tag, the paragraph of the
previous line is not closed. You can try to type the code at the end of
this ticket to html editor and switch to tinymce - it automaticaly strips
out the blank line before the closing div, so the result is
{{{
<div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. <a
href="http://www.example.com">Ut enim ad minim veniam</a></div>
}}}
So the error is both in tinymce (it should not strips out the blank line)
and in wpautop function (or other which formats text) which should find
that there is not closed P tag before the closing div. The error appears
even if you have checked "let wordpress repair the xhtml errors" option.
{{{
<div>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. <a
href="http://www.example.com">Ut enim ad minim veniam</a>
</div>
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11024>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list