I have an odd situation here, where I answered a question and got an acceptance for it.
A few hours later I noticed that the OP changed the accepted answer to another, apparently because they were asked why that answer wasn't the accepted one.
The OP then commented on the other answer with:
Well either work, I don't even know. Since you have less score, I'll give it to you then.
and then switched accepted answer.
Of course I checked the other answer to see if it had some other solution that would be better than mine, though it hadn't. It actually had an issue which made it not working properly.
I notified the OP and asked why they picked an answer which had a flaw, and they commented back:
I actually use your version for the page.
As the best interest of this site is to have the best answer for each question, will my question be, how do we handle these kind of events, where a less good answer becomes the accepted one based on the above?
Here is a link to the post in question: Variable doesn't change with if statement
Update
Obviously my comment I wrote to the OP paid off, as he switched back to my answer as the accepted one.
And then, about 2 hours later, I got a serial downvote issue, 18 answers in 3 min ... who could possibly done that ... did I say that the other answer were deleted as well ......