Person Learns a New Function of the "A" Attribute
In a big online design discussion group, one member posed a question. They had recently noticed the new download attribute on 'a' tags. They wanted to know if anybody else also noticed it, and if so, whether or not they used it yet.
One person replied and said to beware of the cross-origin limitations. The attribution specifies that targets will be downloaded when a person clicks on the link. The "a" can hold a value, and the value will be the new file's name when it is downloaded. There is a code snippet tool where a person can see how it works.
Another person said they're not a fan of automatic downloads of pdfs when the click links. They said that the default behavior of those downloads is to not ask for permission. This person did like the idea that the file name could be changed on the download. Another seconded this, stating that they also were not aware that the file name could be changed.
One person noted that the dynamic name can be updated with PHP or JS. Another person said they knew about the value part, but they were not aware of the download part. One person said the "a" stands for anchor. They thought it was a nifty addition. Most of the people who replied on the thread said that they knew either about the download or the attribute, but not both parts of this tag setup. They were happy to be informed of the details, and most of the people thought that this tidbit would be useful to them in the future when they work on a new project.
Apparently this attribute has a few issues with browser support. It doesn't work on Opera Mini. On Opera Mini, it functions as a link instead of an automatic download. One person said that this information could come in handy on their next project. A person who didn't specify their browser said that the download didn't work on deployment. Someone else said the pdf couldn't be opened. Their machine told them that the file had been corrupted. For more information click here https://i.redd.it/ewu3h7lhg1a61.png.