FIX: Do not set title attribute on header-topic-info widget (#9533)

FIX: Do not set title attribute on header-topic-info widget (#9533)

diff --git a/app/assets/javascripts/discourse/app/widgets/header-topic-info.js b/app/assets/javascripts/discourse/app/widgets/header-topic-info.js
index b3c6da0..0958dcd 100644
--- a/app/assets/javascripts/discourse/app/widgets/header-topic-info.js
+++ b/app/assets/javascripts/discourse/app/widgets/header-topic-info.js
@@ -115,7 +115,7 @@ export default createWidget("header-topic-info", {
       );
     }
 
-    this.title = [h("h1.header-title", heading)];
+    this.headerElements = [h("h1.header-title", heading)];
     const category = topic.get("category");
 
     if (loaded || category) {
@@ -133,7 +133,7 @@ export default createWidget("header-topic-info", {
         }
         categories.push(this.attach("category-link", { category }));
 
-        this.title.push(h("div.categories-wrapper", categories));
+        this.headerElements.push(h("div.categories-wrapper", categories));
       }
 
       let extra = [];
@@ -203,11 +203,10 @@ export default createWidget("header-topic-info", {
         }
       }
       if (extra.length) {
-        this.title.push(h("div.topic-header-extra", extra));
+        this.headerElements.push(h("div.topic-header-extra", extra));
       }
     }
-
-    this.contents = h("div.title-wrapper", this.title);
+    this.contents = h("div.title-wrapper", this.headerElements);
   },
 
   html() {
@@ -219,7 +218,7 @@ export default createWidget("header-topic-info", {
   },
 
   containerClassName() {
-    return this.title.length > 1 ? "two-rows" : "";
+    return this.headerElements.length > 1 ? "two-rows" : "";
   },
 
   jumpToTopPost() {

GitHub sha: 3e543dfa

This commit appears in #9533 which was approved by eviltrout. It was merged by markvanlan.