Index: core/modules/tracker/js/tracker-history.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- a/core/modules/tracker/js/tracker-history.js	(revision )
+++ b/core/modules/tracker/js/tracker-history.js	(revision )
@@ -22,12 +22,12 @@
 
       var $newRepliesPlaceholders = $(context).find('[data-history-node-last-comment-timestamp]').once('history').filter(function () {
         var lastCommentTimestamp = parseInt(this.getAttribute('data-history-node-last-comment-timestamp'), 10);
-        var nodeTimestamp = parseInt(this.previousSibling.previousSibling.getAttribute('data-history-node-timestamp'), 10);
+        var nodeTimestamp = parseInt(this.previousElementSibling.previousElementSibling.getAttribute('data-history-node-timestamp'), 10);
 
         if (lastCommentTimestamp === nodeTimestamp) {
           return false;
         }
-        var nodeID = this.previousSibling.previousSibling.getAttribute('data-history-node-id');
+        var nodeID = this.previousElementSibling.previousElementSibling.getAttribute('data-history-node-id');
         if (Drupal.history.needsServerCheck(nodeID, lastCommentTimestamp)) {
           if (nodeIDs.indexOf(nodeID) === -1) {
             nodeIDs.push(nodeID);
@@ -69,7 +69,7 @@
     var placeholdersToUpdate = {};
     $placeholders.each(function (index, placeholder) {
       var timestamp = parseInt(placeholder.getAttribute('data-history-node-last-comment-timestamp'), 10);
-      var nodeID = placeholder.previousSibling.previousSibling.getAttribute('data-history-node-id');
+      var nodeID = placeholder.previousElementSibling.previousElementSibling.getAttribute('data-history-node-id');
       var lastViewTimestamp = Drupal.history.getLastRead(nodeID);
 
       if (timestamp > lastViewTimestamp) {
@@ -97,4 +97,4 @@
       }
     });
   }
-})(jQuery, Drupal, window);
\ No newline at end of file
+})(jQuery, Drupal, window);
Index: core/modules/tracker/js/tracker-history.es6.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- a/core/modules/tracker/js/tracker-history.es6.js	(revision )
+++ b/core/modules/tracker/js/tracker-history.es6.js	(revision )
@@ -33,12 +33,12 @@
         .once('history')
         .filter(function () {
           const lastCommentTimestamp = parseInt(this.getAttribute('data-history-node-last-comment-timestamp'), 10);
-          const nodeTimestamp = parseInt(this.previousSibling.previousSibling.getAttribute('data-history-node-timestamp'), 10);
+          const nodeTimestamp = parseInt(this.previousElementSibling.previousElementSibling.getAttribute('data-history-node-timestamp'), 10);
           // Discard placeholders that have zero comments.
           if (lastCommentTimestamp === nodeTimestamp) {
             return false;
           }
-          const nodeID = this.previousSibling.previousSibling.getAttribute('data-history-node-id');
+          const nodeID = this.previousElementSibling.previousElementSibling.getAttribute('data-history-node-id');
           if (Drupal.history.needsServerCheck(nodeID, lastCommentTimestamp)) {
             if (nodeIDs.indexOf(nodeID) === -1) {
               nodeIDs.push(nodeID);
@@ -82,7 +82,7 @@
     const placeholdersToUpdate = {};
     $placeholders.each((index, placeholder) => {
       const timestamp = parseInt(placeholder.getAttribute('data-history-node-last-comment-timestamp'), 10);
-      const nodeID = placeholder.previousSibling.previousSibling.getAttribute('data-history-node-id');
+      const nodeID = placeholder.previousElementSibling.previousElementSibling.getAttribute('data-history-node-id');
       const lastViewTimestamp = Drupal.history.getLastRead(nodeID);
 
       // Queue this placeholder's "X new" replies link to be downloaded from the
