Merge "Remove code for handling legacy HTML with data-mw-comment-name"

This commit is contained in:
jenkins-bot 2022-05-15 20:20:43 +00:00 committed by Gerrit Code Review
commit df0e84c0d1

View file

@ -108,17 +108,6 @@ function initTopicSubscriptions( $container ) {
}
var itemName = headingItem.name;
if ( !itemName ) {
// Cached HTML may not contain item names for a short period. Assume the old
// data-mw-comment-name markers are present instead.
// This code branch can be removed a week or two after release.
itemName = this.getAttribute( 'data-mw-comment-name' );
if ( !itemName ) {
// This should never happen
return;
}
}
var title = getTitleFromHeading( heading );
linksByName[ itemName ] = this;