#103 closed defect (bug)
<hr /> and <br /> tags entered in posts invalidate XHTML 1.0 Transitional
| Reported by: | Bard09 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 1.2 |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
Description
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.
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I can't seem to edit my own bug report. [HR] and [BR] tags are the tags I am indicating, as WP wraps them with [P] automatically.
edited on: 06-21-04 05:16