01528: new markup request

Summary: new markup request
Created: 2025-11-11 19:13
Status: Open
Category: Feature
From: gnuzoo
Assigned:
Priority: 5
Version: newer
OS: newer

Description: The download attribute for the HTML anchor (<a>) element was introduced in the HTML5 specification (published as a W3C Candidate Recommendation on 17 December 2012, and later as a full Recommendation on 28 October 2014). It enables browsers to download the linked resource directly rather than navigating to it, with an optional value specifying the default filename. This feature is part of the broader HTML5 hyperlink enhancements.

Why jump through a hoop to add this? How about appending '|download="suggested_filename.xyz"' to a link or some other markup?

This code seems like a lot of trouble, why customize everything with config files?:

>> How can I make a link that prompts the user to download a file instead of opening it in the browser?
>> 
>> Add to config.php:
>> 
>> $WikiStyle['download']['download'] = '';
>> $WikiStyleAttr['download'] = 'a';
>> 
>> Then in a page, use a WikiStyle %download%[[Attach:file.txt]]%%.