#7046 closed defect (bug) (invalid)
non visual editor inserting unwanted code
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
On pages (it only has occurred on pages) using the non visual editor I am consistently getting break tags and paragraph tags thrown in by wordpress.
When inserting a tag that is not a block level element wordpress will insert this code so instead of:
<span> Hello World! </span>
It would spit out:
<span><br/> Hello World! </span>
Or possibly even:
<p><span><br/> Hello World! </span></p>
I communicated over twitter with a person at automattic who told me to come here and submit a bug report so here I am.
I have tried re-installing wordpress and various other random css tricks to no avail, so I am turning to the wordpress community.
The errors can be seen on the following pages: http://www.cadistrict38.org/front and http://www.cadistrict38.org/staff although some css or comments are utilized to get a somewhat acceptable look while this issue is addressed.

When using the HTML editor in WordPress, each new line is usually converted to <br /> and two new lines to <p>. The tags are not shown to keep the text more readable. Typing:
is different than typing:
Of course, bot of these will have to be wrapped in <p> tags, so the html is compliant with the XHTML 1.0 specification.
The end result on the site should look like this: