<hr /> and <br /> tags entered in posts invalidate XHTML 1.0 Transitional
|Reported by:||Bard09||Owned by:|
It's pretty simple to reproduce:
Put <hr /> or <br /> on a new line in a post. Wordpress automatically encloses the tags with <p></p> tags, creating this, <p><hr /></p>, which is unfortunately invalid XHTML 1.0 Transitional.
Using your own <p></p> tags lets you put <br /> tags inside, but <hr /> tags must be placed outside to validate as XHTML.
This is a minor bug (if considered a bug at all) but it is rather frustrating. A PHP script that detects if <hr /> or <br /> is on a new line and skips wrapping it with <p></p> tags would work.