1. Visit a question, read the answers.
  2. Click on a link to some other page.
  3. Return to the question page using the browser's back button.
  4. Try to vote on an answer.
  5. Reload the page.
  6. See that the vote was cast for the wrong answer.

If the answers were reordered when returning to the page, there's a high chance the vote will be cast on the wrong answer. Say in step 1 the answers were in order A, B, C but were reordered to C, A, B (or an additional answer D appeared in the meantime) when returning in step 3; when voting on answer A the vote will be cast on answer C, which is apparent when reloading the page.

Confirmed on Safari OS X (for a number of past versions, this has existed for a while).

Some more details, as it just happened on this question:

I had downvoted the question, then clicked through to another page. I returned to the question and two new answers were posted in the meantime. The first answer was being shown as being voted down by me (false). The markup looked like this:

false downvote

Notice it has both vote-down-off and vote-down-on classes.

I then tried to explicitly vote on the answer, which gave me the error that I "had already voted on the question" and unless it changes I couldn't vote again etc etc. Here's the AJAX request:


  • 1
    Browser? This has happened to me on Chrome Canary before, but that's unsupported. – Manishearth Apr 29 '13 at 8:21
  • Safari OS X for a number of past versions. Can't confirm for others. – deceze Apr 29 '13 at 8:23
  • If I see this correctly, that shouldn't be possible (the ID of the answer is in a hidden field in the same element as the voting buttons). You sure you don't have any addons or something messing with you? – Time Traveling Bobby Apr 29 '13 at 9:42
  • @Sulfur I don't think I have any add-ons that would cause such a specific behavior only on SO. – deceze Apr 29 '13 at 9:46
  • I'm unable to reproduce this...can you log the traffic of what happens in your browser when clicking that vote button? – Time Traveling Bobby Apr 29 '13 at 21:32
  • @Sulfuri Added some more information. – deceze Apr 30 '13 at 6:17

You must log in to answer this question.

Browse other questions tagged .