There seems to be a regression since v1.8.1, introduced in 7f7589999582e56a1dcf0e5af02ba12e6223a17f (feat: add support for nested tabbers in Codex (#95)), that results in the inability to create tabs that contain ], [ in their names. At wiki.gg we're using version v1.9.1 with patches for #151, but I reproduced this bug in the latest v2 version too. We're using legacy, non-Codex tabbers.
In v1.7.5, v1.8.0: all tabs are displayed correctly.
At 7f7589999582e56a1dcf0e5af02ba12e6223a17f, or in v1.8.1, v1.9.0, v2.2.4: First three tabs render correctly. Name of tab a[] is mangled with pieces of tabber DOM leaking inside. Tab b is not displayed at all, instead tab a[] displays tab b's contents. Tab ] is mangled in the same way, displaying contents of tab [.
Cause
Seems like the last line of the following breaks the tabs:
Thanks for the detailed report. Those lines are probably legacy code that used to get around some of the weird wikitext parsing issue that we faced before, but it should no longer be needed.
Hi,
There seems to be a regression since v1.8.1, introduced in 7f7589999582e56a1dcf0e5af02ba12e6223a17f (feat: add support for nested tabbers in Codex (#95)), that results in the inability to create tabs that contain
]
,[
in their names. At wiki.gg we're using version v1.9.1 with patches for #151, but I reproduced this bug in the latest v2 version too. We're using legacy, non-Codex tabbers.Reproduction
For a page consisting of the following wikitext:
behaviour is as follows:
a[]
is mangled with pieces of tabber DOM leaking inside. Tabb
is not displayed at all, instead taba[]
displays tabb
's contents. Tab]
is mangled in the same way, displaying contents of tab[
.Cause
Seems like the last line of the following breaks the tabs:
Notably, when the following HTML is generated:
the last replacement removes the double quote after
]
:I don't have any context for those three lines, and can't suggest any patches.
(Internal reference for my fellow wiki.gg friends: WIKIDEV-150)