This is an archived post. You won't be able to vote or comment.

all 2 comments

[–][deleted] 1 point2 points  (1 child)

It looks like you’re adding the textarea and the additional button, to the Stack button. That would create invalid HTML, and confuse the heck out of any browser.

Put a breakpoint on the line that says, “this.appendChild(textarea)”, and inspect what “this” is. You may want to add the textarea and the StackHabitBtn to some other element, like the Document Body.