We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9494a4c commit e26ea6fCopy full SHA for e26ea6f
1 file changed
TwitterA11yFixes.user.js
@@ -81,12 +81,12 @@ function onFocus(evt) {
81
elm.setAttribute("role", "button");
82
target.setAttribute("aria-activedescendant", id);
83
84
- } else if (tag == "TEXTAREA" && classes == "twitter-anywhere-tweet-box-editor") {
+ } else if (tag == "TEXTAREA" && classes == "tweet-box") {
85
// This is a tweet box.
86
if (target.getAttribute("aria-describedby"))
87
return;
88
// Make the tweet counter the description of the tweet box for easy access.
89
- var elm = target.parentNode.parentNode.parentNode.getElementsByClassName("tweet-counter")[0];
+ var elm = target.parentNode.parentNode.getElementsByClassName("tweet-counter")[0];
90
var id = "counter" + ++idCounter;
91
elm.setAttribute("id", id);
92
target.setAttribute("aria-describedby", id);
0 commit comments