From 1f4322839475b02763a14dade8981063a5435d3b Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 27 Jun 2023 08:55:39 +0100 Subject: [PATCH] Set button role on markdown help link This lets browsers know it's actually a button, rather than a malformed `a` without a `href`. --- frontend/js/commento.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index 5a3c5a6..1115e9f 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -706,6 +706,7 @@ attrSet(anonymousCheckboxLabel, "for", ID_ANONYMOUS_CHECKBOX + id); attrSet(guestName, "type", "text"); attrSet(guestName, "placeholder", i18n("Your Name")); + attrSet(markdownButton, "role", "button"); anonymousCheckboxLabel.innerText = i18n("Comment anonymously"); if (edit === true) {