wpautop breaks block-level ins
-
According to the W3C recommendations, <ins> and <del> can be either block-level or inline elements. When they are block-level elements, they can include other block-level elements, such as
<p>
blocks. Unfortunately, if you enter the following code in a WordPress post (version 1.5.2):<p>
Main post text.</p>
<ins datetime=”2005-09-23T08:46:48+00:00″><p>
Oh, I forgot: additional paragraph one.</p>
</ins><ins datetime=”2005-09-23T08:47:44+00:00″><p>
Also: additional paragraph two.</p>
</ins>WordPress adds an extra
</p>
at the end, which of course stops the blog validating as correct XHTML. If you try putting each <ins> element on a new line, then WordPress still adds a superfluous</p>
, but now also sticks a<br />
between the two<ins>
elements, creating unwanted white space in the layout.This bug(?) is breaking validation on my blog with this post.
(Sorry for not formatting the code in this query as code, but it kept erasing elements, so I gave up.)
- The topic ‘wpautop breaks block-level ins’ is closed to new replies.