diff options
author | Arlo Breault <abreault@wikimedia.org> | 2020-04-28 13:35:45 -0400 |
---|---|---|
committer | Arlo Breault <abreault@wikimedia.org> | 2020-04-29 16:51:28 -0400 |
commit | 4d4e14372fe680b435ae3cc7223c8b2e47d476a3 (patch) | |
tree | 5bd7305ba0272e218522e765ad91a3e269b8d9b6 /tests/parser | |
parent | 9b245450f0e5c47d250557032432b1ebae122564 (diff) | |
download | mediawikicore-4d4e14372fe680b435ae3cc7223c8b2e47d476a3.tar.gz mediawikicore-4d4e14372fe680b435ae3cc7223c8b2e47d476a3.zip |
Move french space armoring after doBlockLevels
This was moved before doBlockLevels in c23cb2c when it used to be a more
general cleanup that conflicted with it. Since 02ff859 that no longer
seems necessary.
Further, this gives the consistency of armoring inside wikilinks and
avoids some unnecessary row definition list colons being armored.
Maybe this should be moved to the end of internalParseHalfParsed after
language conversion but before tidying, where the other call to the
sanitizer happens, Sanitizer::normalizeCharReferences. But let's change
things one step at a time and start by moving it here before we try to
move it further.
The goal here being to make french space armoring a post-processing
step, rather than an intermediate transformation, more consistent with
how Parsoid will/wants to do it.
Bug: T197879
Change-Id: I3eae3719ab8fb50b7996d4fd8a9fa0d5ca250023
Diffstat (limited to 'tests/parser')
-rw-r--r-- | tests/parser/parserTests.txt | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index dc3a06b5611f..04fc6b2e6b6a 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -4662,9 +4662,9 @@ Definition Lists: Mixed Lists: Test 13 *#*#;*;;foo : bar *#*#;boo : baz !! html+tidy -<ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt> +<ul><li><ol><li><ul><li><ol><li><dl><dt>foo</dt> <dd><ul><li><dl><dt><dl><dt>bar</dt></dl></dt></dl></li></ul></dd></dl></li></ol></li></ul> -<dl><dt>boo </dt> +<dl><dt>boo</dt> <dd>baz</dd></dl></li></ol></li></ul> !! end @@ -8947,7 +8947,7 @@ Interwiki links that cannot be represented in wiki syntax !! html/php <p><a href="http://www.usemod.com/cgi-bin/mb.pl?ok" class="extiw" title="meatball:ok">meatball:ok</a> <a href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo" class="extiw" title="meatball:ok">ok with fragment</a> -<a href="http://www.usemod.com/cgi-bin/mb.pl?ok_as_well%3F" class="extiw" title="meatball:ok as well?">ok ending with ? mark</a> +<a href="http://www.usemod.com/cgi-bin/mb.pl?ok_as_well%3F" class="extiw" title="meatball:ok as well?">ok ending with ? mark</a> <a rel="nofollow" class="external text" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a> <a rel="nofollow" class="external text" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a> </p> @@ -9126,7 +9126,7 @@ Blah blah blah !! html/php <p>Blah blah blah <a href="http://es.wikipedia.org/wiki/Spanish" class="extiw" title="es:Spanish">es:Spanish</a> -<a href="http://zh.wikipedia.org/wiki/Chinese" class="extiw" title="zh:Chinese"> zh : Chinese </a> +<a href="http://zh.wikipedia.org/wiki/Chinese" class="extiw" title="zh:Chinese"> zh : Chinese </a> </p> !! html/parsoid <p>Blah blah blah @@ -25209,14 +25209,12 @@ Hello : this ; is « something ‹ else › again » </p> !! end -# It would be reasonable for Parsoid and PHP to differ here. -# The PHP behavior is arguably a bug. !! test Corner case: french spaces in definition list !! wikitext ;foo : bar !! html+tidy -<dl><dt>foo </dt> +<dl><dt>foo</dt> <dd>bar</dd></dl> !! end @@ -33186,7 +33184,7 @@ __NOTOC__ <h2><span class="mw-headline" id="Tabs">Tabs</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Tabs">edit</a><span class="mw-editsection-bracket">]</span></span></h2> <h2><span class="mw-headline" id=".D0.9B.D0.B8.D1.87.D0.BD.D0.B0.D1.8F_.D0.B6.D0.B8.D0.B7.D0.BD.D1.8C">Личная жизнь</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Личная жизнь">edit</a><span class="mw-editsection-bracket">]</span></span></h2> <ul><li>List item</li></ul> -<dl><dt>term </dt> +<dl><dt>term</dt> <dd>definition</dd></dl> <table> <caption>Table Caption |