Safari download attribute bug

The bug is triggered when multiple HTML link elements are on a web page and some of the links have the download attribute to force the browser to download the document and some a target to force the browser to open the link in a new window.

Once the link with the download attribute is clicked, all following clicks on the other links with the target will download instead of open in a new window.

Instructions

  1. OK: Click link A: opens page in new window
  2. OK: Click link B: downloads PDF
  3. NOK: Click link A again: downloads page A instead of opening in new window

Step 1) can be skipped to get the same effect. The error happens as soon as a link with the download attribute is clicked

Test links