Index: trunk/phase3/tests/parser/parserTests.txt |
— | — | @@ -1346,7 +1346,7 @@ |
1347 | 1347 | !! test |
1348 | 1348 | Table rowspan |
1349 | 1349 | !! input |
1350 | | -{| align=right border=1 |
| 1350 | +{| border=1 |
1351 | 1351 | | Cell 1, row 1 |
1352 | 1352 | |rowspan=2| Cell 2, row 1 (and 2) |
1353 | 1353 | | Cell 3, row 1 |
— | — | @@ -1355,7 +1355,7 @@ |
1356 | 1356 | | Cell 3, row 2 |
1357 | 1357 | |} |
1358 | 1358 | !! result |
1359 | | -<table align="right" border="1"> |
| 1359 | +<table border="1"> |
1360 | 1360 | <tr> |
1361 | 1361 | <td> Cell 1, row 1 |
1362 | 1362 | </td> |
— | — | @@ -1968,13 +1968,13 @@ |
1969 | 1969 | !! test |
1970 | 1970 | Failing to transform badly formed HTML into correct XHTML |
1971 | 1971 | !! input |
1972 | | -<br clear=left> |
1973 | | -<br clear=right> |
1974 | | -<br clear=all> |
| 1972 | +<br style="clear: left;"> |
| 1973 | +<br style="clear: right;"> |
| 1974 | +<br style="clear: both;"> |
1975 | 1975 | !! result |
1976 | | -<p><br clear="left" /> |
1977 | | -<br clear="right" /> |
1978 | | -<br clear="all" /> |
| 1976 | +<p><br style="clear: left;" /> |
| 1977 | +<br style="clear: right;" /> |
| 1978 | +<br style="clear: both;" /> |
1979 | 1979 | </p> |
1980 | 1980 | !!end |
1981 | 1981 | |
— | — | @@ -4517,9 +4517,9 @@ |
4518 | 4518 | !! test |
4519 | 4519 | div with illegal double attributes |
4520 | 4520 | !! input |
4521 | | -<div align="center" align="right">HTML rocks</div> |
| 4521 | +<div id="a" id="b">HTML rocks</div> |
4522 | 4522 | !! result |
4523 | | -<div align="right">HTML rocks</div> |
| 4523 | +<div id="b">HTML rocks</div> |
4524 | 4524 | |
4525 | 4525 | !!end |
4526 | 4526 | |
— | — | @@ -4549,9 +4549,9 @@ |
4550 | 4550 | !! test |
4551 | 4551 | DIV IN UPPERCASE |
4552 | 4552 | !! input |
4553 | | -<DIV ALIGN="center">HTML ROCKS</DIV> |
| 4553 | +<DIV ID="x">HTML ROCKS</DIV> |
4554 | 4554 | !! result |
4555 | | -<div align="center">HTML ROCKS</div> |
| 4555 | +<div id="x">HTML ROCKS</div> |
4556 | 4556 | |
4557 | 4557 | !!end |
4558 | 4558 | |
— | — | @@ -8799,6 +8799,22 @@ |
8800 | 8800 | ... |
8801 | 8801 | !! end |
8802 | 8802 | |
| 8803 | +!! test |
| 8804 | +Deprecated presentational attributes are converted to css |
| 8805 | +!! input |
| 8806 | +{| |
| 8807 | +| valign=top align=left width=100 height=25% | Asdf |
| 8808 | +|} |
| 8809 | +<ul type="disc"></ul> |
| 8810 | +!! result |
| 8811 | +<table> |
| 8812 | +<tr> |
| 8813 | +<td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf |
| 8814 | +</td></tr></table> |
| 8815 | +<ul style="list-style-type: disc;"></ul> |
| 8816 | + |
| 8817 | +!! end |
| 8818 | + |
8803 | 8819 | TODO: |
8804 | 8820 | more images |
8805 | 8821 | more tables |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -2186,7 +2186,7 @@ |
2187 | 2187 | /** |
2188 | 2188 | * Cleanup as much presentational html like valign -> css vertical-align as we can |
2189 | 2189 | */ |
2190 | | -$wgCleanupPresentationalAttributes = false; |
| 2190 | +$wgCleanupPresentationalAttributes = true; |
2191 | 2191 | |
2192 | 2192 | /** |
2193 | 2193 | * Should we try to make our HTML output well-formed XML? If set to false, |