A NaN Edge Case

Members can make suggestions for improving the site and improving the forum as well as submit bug reports to be reviewed by our support team here.
Post Reply
Message
Author
User avatar
flash2015
Gold Donator
Gold Donator
Posts: 3200
Joined: Fri Sep 29, 2017 7:55 pm
Location: Planet Earth
Karma: 1155
Contact:

A NaN Edge Case

#1 Post by flash2015 » Thu Oct 31, 2019 11:34 pm

I think I may have figured out how to reproduce the NaN scenario I saw before. Here is how to do it:

(1) Open two windows to the same Forum thread in the same browser.
(2) In the first thread +1 a comment which has no +1s.
(3) In the second thread, without refreshing the page (i.e. it still shows just + for the comment), +1 the same comment. You should now see a +NaN, click the + sign again and it will change into a +1.

I think I have also been able to make it show +2 with the two windows simultaneously but I haven't figured out how to reproduce it yet (give me another year to figure it out :) ).

This is in Firefox 69.0 on Windows 8.1. It isn't a big deal as it is unlikely that many people will hit it but thought you should know...and hopefully this clears up the idea that I would purposely go out of my way to waste anyone's time.

Post Reply

Who is online

Users browsing this forum: No registered users and 123 guests