I'm not on Twitter and have no intention of joining for this.
But I would want to know if the code in your post is in an iframe. If it is we would need to get to the iframe document in our code.
I'd also like to know if the twitter-anywhere-tweet-box-editor is really an ordinary textarea. Like are you looking at 'view source' or at a DOM inspector? There's a good chance that the editor is enhanced and changed via javascript and that the element twitter-anywhere-tweet-box-editor may no longer exist in the DOM.
One way to answer both questions would be to use Firefox with the Developer Tools extension installed. Use its 'view source' > 'view generated source'.
Then you will see if the elements you are looking for are even there in the generated source (the actual DOM).
Use its DOM Inspector to try to find them as well. It has a find element by clicking on it, and a find element by attribute. If they're in an iframe, you can walk up the tree to the iframe, find its name if any or at least its position in the window.frames collection.
You could also experiment with the code:
Code:
<a href="javascript:(function(){
function func(e){
alert('here');
}
if (window.addEventListener){
document.addEventListener('click', func, false);
}
else if (window.attachEvent){
document.attachEvent('onclick', func);
}
})();">Bookmarklet</a>
Click on your button or whatever it is. If it doesn't alert, the event isn't bubbling, or has been removed, or the element is in an iframe.
If it does alert try:
Code:
<a href="javascript:(function(){
function func(e){
e = e || event;
var t = e.target || e.srcElement, t1, t2, t3, pn;
alert(t.tagName);
alert(t.parentNode.innerHTML);
alert(t.className);
}
if (window.addEventListener){
document.addEventListener('click', func, false);
}
else if (window.attachEvent){
document.attachEvent('onclick', func);
}
})();">Bookmarklet</a>
If those work, tell me what they alert.
Bookmarks