Page MenuHomePhabricator

Remex fails on <bdo>/<bdi> after <table> on same line
Closed, ResolvedPublic

Description

Reported on german village pump for this version - https://de.wikipedia.org/w/index.php?title=Slim_Bouaziz&oldid=162896514

I have reduced the case to the following wikitext:

{| class="wikitable"
| A infobox
|}'''Intro''' with arabic <bdo dir="ltr"><bdi dir="rtl" lang="ar" class="arabic spanAr" style="unicode-bidi:isolate;font-size:120%;">سليم بوعزيز</bdi></bdo>


{| class="wikitable"
| A infobox
|}
'''Intro''' with arabic <bdo dir="ltr"><bdi dir="rtl" lang="ar" class="arabic spanAr" style="unicode-bidi:isolate;font-size:120%;">سليم بوعزيز</bdi></bdo>


{| class="wikitable"
| A infobox
|}'''Intro''' with arabic <bdi>سليم بوعزيز</bdi>

The first and last example are broken with the bdo. The generated html has a </p> to earlier.
The only different is that the <table> is on the same line with <bdo>

Event Timeline

Change 424171 had a related patch set uploaded (by Arlolra; owner: Arlolra):
[mediawiki/core@master] Munge inline elements found in tidy.conf as well

https://gerrit.wikimedia.org/r/424171

Arlolra triaged this task as Medium priority.Apr 5 2018, 12:22 AM

Change 424171 merged by jenkins-bot:
[mediawiki/core@master] Munge inline elements found in tidy.conf as well

https://gerrit.wikimedia.org/r/424171

Arlolra claimed this task.