Skip to content

Commit

Permalink
tag: fix multiple issues grouping (wikimedia-gadgets#1997) (wikimedia…
Browse files Browse the repository at this point in the history
…-gadgets#2003)

Fix regression where section-specific tags were no longer ignored due to
a change in the HTML structure of article headings.
  • Loading branch information
TollensWP authored and rustykitty committed Dec 1, 2024
1 parent c5011c7 commit 41c2a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/friendlytag.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 41c2a27

Please sign in to comment.