I didn’t notice this until now.
When I look at my test site that is on WP 5.2.7, it looks fine, and the markup has
aria-label="Reply to A WordPress Commenter" and some other
But on WP 5.5.1, the same
aria-label is there next to an additional
data-replyto="Reply to A WordPress Commenter" so there must have been a change, and that change leaves out the space.
I think it’s a good case for a ticket, which you can write at https://core.trac.wordpress.org/
You might want to search for the ticket where the change was introduced, to reference it.
No aria label here, when I look in TwentyTwenty this is the code:
<h3 id="reply-title" class="comment-reply-title">Reply to A WordPress Commenter<small><a rel="nofollow" id="cancel-comment-reply-link" href="/hello-world/#respond" style="">Cancel reply</a></small></h3>
It’s generated in file comment-template so will take a look at the current one and one from previous WP versions.. There must be something changed.
Apparently, you are looking at the code that the script generates, whereas I’m looking at it before that.
It’s still different than it used to be, so the change has a problem to be fixed.
I now see what you mean. But I think it’s caused by something else. Besides that no related changes in that file.
I have checked WP 5.1.6 till current version and there’s something I don’t understand. In all versions of file comment-template there’s a whitespace before the Cancel reply label
'cancel_reply_before' => ' <small>', but somehow this is being ignored.
I think they changed the script, and the space went missing (either due to a trim function or translation change or ?).
I saw that ticket in Slack, and came here to make sure it was noted.