Page MenuHomePhabricator

Thumbnail within continuous text breaks <bdo><bdi>
Closed, ResolvedPublic

Description

Imagine the following code:

whaffle1<bdo><bdi>rtl</bdi></bdo>whaffle2[[File:example.png|thumb]]whaffle3

That will be broken into

<p>
whaffle1
</p>
<bdo><bdi>rtl</bdi></bdo>
<p>
whaffle2
</p>
<img>
<p>
whaffle3
</p>

Note that both <bdo> and <bdi> are flow content HTML. They are used here as a browser-safe approach to break UBA without insertion of additional bidi characters.

The thumbnail is breaking the parser. The following works as expected within a consecutive first paragraph:

whaffle1<bdo><bdi>rtl</bdi></bdo>whaffle2
[[File:example.png|thumb]]
whaffle3

See Template Talk:HeS on dewiki for rendering example.

Occurring on dewiki under Remex conditions.

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
Arlolra edited projects, added RemexHtml; removed Parsoid.

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.