summaryrefslogtreecommitdiff
path: root/pages/faqca.swig
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-09-26 13:29:20 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-09-26 13:30:32 +0200
commit6f51b356a4c08f8ec3b452e92e301062c828dbc5 (patch)
treee47bbddbfbd10ced21247a9c7fdf5baaeab0aa05 /pages/faqca.swig
parent2e0945412f9046ae83ebfe17fcc23dd396be7701 (diff)
Replace #upload-btn <a> element with <button>
Corrects semantics and increases accessibility. The <a> element represents a hyperlink. A hyperlink is "a link from a hypertext file or document to another location or file." This is not what #upload-btn is, it's a button. Ask yourself: "Does the element change the URL?" In our case, the upload button does not so it is incorrect to use an <a> element here. The idea to use <a> elements as buttons comes from years ago when you couldn't style <button> elements in legacy browsers. Today you can, so there's no reason to break the semantics. Reference: http://blogs.ancestry.com/techroots/buttons-vs-anchors/
Diffstat (limited to 'pages/faqca.swig')
0 files changed, 0 insertions, 0 deletions