From a58009e4455bdb9fd83b712ca8fb45d9db2a529e Mon Sep 17 00:00:00 2001 From: Tollens Date: Wed, 16 Oct 2024 02:55:02 -0600 Subject: [PATCH] tag: fix multiple issues grouping (#1997) (#2003) Fix regression where section-specific tags were no longer ignored due to a change in the HTML structure of article headings. --- modules/friendlytag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/friendlytag.js b/modules/friendlytag.js index 55b670aa1..791f2eeea 100644 --- a/modules/friendlytag.js +++ b/modules/friendlytag.js @@ -315,7 +315,7 @@ Twinkle.tag.callback = function friendlytagCallback() { // break out on encountering the first heading, which means we are no // longer in the lead section - if (e.tagName === 'H2') { + if (e.classList.contains('mw-heading')) { return false; }