Index: trunk/phase3/tests/parser/parserTests.txt |
— | — | @@ -1406,7 +1406,24 @@ |
1407 | 1407 | |
1408 | 1408 | !! end |
1409 | 1409 | |
| 1410 | +!! test |
| 1411 | +Heading inside table (affected by r85922) |
| 1412 | +!! input |
| 1413 | +{| |
| 1414 | +|- valign="top" |
| 1415 | +| |
| 1416 | +=== Heading === |
| 1417 | +|} |
| 1418 | +!! result |
| 1419 | +<table> |
1410 | 1420 | |
| 1421 | +<tr valign="top"> |
| 1422 | +<td> |
| 1423 | +<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Heading">edit</a>]</span> <span class="mw-headline" id="Heading"> Heading </span></h3> |
| 1424 | +</td></tr></table> |
| 1425 | + |
| 1426 | +!! end |
| 1427 | + |
1411 | 1428 | !! test |
1412 | 1429 | Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html) |
1413 | 1430 | !! input |
— | — | @@ -5578,6 +5595,7 @@ |
5579 | 5596 | # </td> |
5580 | 5597 | # </tr> |
5581 | 5598 | # </table> |
| 5599 | +# Known to produce bad XML for now |
5582 | 5600 | !! test |
5583 | 5601 | Fuzz testing: Parser24 |
5584 | 5602 | !! options |
— | — | @@ -5593,9 +5611,10 @@ |
5594 | 5612 | | |
5595 | 5613 | !! result |
5596 | 5614 | <p>{{{| |
5597 | | -<u class="|">}}}} > |
5598 | | -<br style="onmouseover='alert(document.cookie);'" /> |
5599 | | -</p><p>MOVE YOUR MOUSE CURSOR OVER THIS TEXT |
| 5615 | +</p><p><u class="|">}}}} > |
| 5616 | +</p><p><br style="onmouseover='alert(document.cookie);'" /> |
| 5617 | +</p><p><br /> |
| 5618 | +MOVE YOUR MOUSE CURSOR OVER THIS TEXT |
5600 | 5619 | </p> |
5601 | 5620 | <table> |
5602 | 5621 | <tr> |
Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -955,7 +955,7 @@ |
956 | 956 | $output =& $currentElement['content']; |
957 | 957 | |
958 | 958 | } else { |
959 | | - $output .= $outLine . "\n"; |
| 959 | + $output .= "\n$outLine\n"; |
960 | 960 | } |
961 | 961 | } |
962 | 962 | |