2 Messages
•
84 Points
Monday, December 5th, 2022
Closed
Solved
User profile page: incorrect length for bars for "Top-Rated Genres" and "Top-Rated Years"
On the user profile page (https://www.imdb.com/user/urXXXXXXXX/) in the "Top-Rated Genres" and "Top-Rated Years" categories, the length of the bars showing the relative quantity of films watched in a certain year/genre are incorrect due to an error in HTML code. Here is an example of the code for the year 2013 (where the maximum of films watched in a year is 43 for a different year) 23 films are counted for 2013, which is 53.488% of the maximum of 43, therefore the width of the bar should be 53.488px (out of the maximum 100px). However, in the code there is a comma ("53,488px") which corresponds to a value much larger than 100px. In consequence, most bars for years and genres are all capped at 100px and do not reflect the true quantity of films watched. Here is an example of how it appears currently on the website: And it would appear by replacing the comma: Of note, this issue occurs on an account that is being used in France, where commas are used to separate the integer value from the decimal value (although not in HTLM), so it could be a localization error. EDIT: Code formatting.
Problem
•
Updated
3 years ago
• Edited
36
2
Responses
Jon
Employee
•
1.5K Messages
•
14.6K Points
3 years ago
0
Jon
Employee
•
1.5K Messages
•
14.6K Points
3 years ago
1