Remove backward-compatibility with old Scribunto cached content

Old content in the ParserCache may have scribunto errors tagged using
the 'id' attribute instead of 'class'.  We don't need that compatibility
code once the content expires from the parser cache.

Bug: T375539
Follows-Up: I123a0f0046a616f63506f096651ae917bbc65cc5
Change-Id: I22ade9ec45971a96fbbd148fbd11ea9bbd2098cf
This commit is contained in:
C. Scott Ananian 2024-09-24 13:01:51 -04:00 committed by jenkins-bot
parent 756896edbb
commit 33c69346fe

View file

@ -5,11 +5,7 @@
let popup;
$( '.scribunto-error' ).each( ( index, span ) => {
let matches = regex.exec( span.className );
if ( matches === null ) {
// T375539: backward-compatibility with old cached HTML
matches = regex.exec( span.id );
}
const matches = regex.exec( span.className );
if ( matches === null ) {
mw.log( 'mw.scribunto.errors: regex mismatch!' );
return;