CodeSOD: Plugin Acrobatics Note

CodeSOD: Plugin Acrobatics

In the past, web browsers relied on content plugins to display different media types, such as videos and PDFs. Web developers had to write code to check for these plugins and provide installation links if they were missing. Ido's submission is a piece of code intended to find the version of the Acrobat Reader plugin. The code checks for the navigator.plugins array, which is now outdated, and loops through it using a for loop bounded at 15 for unknown reasons. It checks each entry to ensure it's not -1, then retrieves the version property and uses parseFloat on it, ignoring the fact that version numbers are not actual numbers. The code also sets isAcrobatInstalled to true without verifying if the plugin is actually an Acrobat plugin. The loop is unnecessary and the code is deprecated.