| 1 |
The following code typed into Wordpress: |
|---|
| 2 |
|
|---|
| 3 |
<div style="text-align: center; margin: auto"> |
|---|
| 4 |
<object type="application/x-shockwave-flash" style="width:425px; height:353px;" data="http://www.youtube.com/v/u-foWh9dskg"> |
|---|
| 5 |
<param name="movie" value="http://www.youtube.com/v/u-foWh9dskg" /> |
|---|
| 6 |
</object></div> |
|---|
| 7 |
|
|---|
| 8 |
is rendered as: |
|---|
| 9 |
|
|---|
| 10 |
<div style="text-align: center; margin: auto"> |
|---|
| 11 |
<object type="application/x-shockwave-flash" style="width:425px; height:353px;" data="http://www.youtube.com/v/u-foWh9dskg"></p> |
|---|
| 12 |
<param name="movie" value="http://www.youtube.com/v/u-foWh9dskg" /> |
|---|
| 13 |
</object></div> |
|---|
| 14 |
|
|---|
| 15 |
Notice the </p> just before the start of the <param> tag. This renders the XHTML invalid. |
|---|
| 16 |
|
|---|
| 17 |
(I have attached the content of this bug report as a text file just in case the spacing is not preserved by Trac and it turns out to be important). |
|---|