Remove compatibility code for 'data-mw-comment-start' change

No longer needed.

This reverts commit f727c988a0.

Change-Id: Ib67d30890c6542bd0235dac6e49870c038d5dd86
This commit is contained in:
Bartosz Dziewoński 2021-03-22 21:17:34 +00:00
parent f727c988a0
commit 9e255d82ca

View file

@ -85,8 +85,7 @@ ThreadItem.static.newFromJSON = function ( json, commentsById ) {
idEscaped = $.escapeSelector( item.id );
item.range = {
// Check old selector for compatibility with cached HTML
startContainer: document.getElementById( item.id ) || document.querySelector( '[data-mw-comment-start="' + idEscaped + '"]' ),
startContainer: document.getElementById( item.id ),
startOffset: 0,
endContainer: document.querySelector( '[data-mw-comment-end="' + idEscaped + '"]' ),
endOffset: 0