Hi,
I have proposed two new attributes be added to HTML5, @uris and @alternateURIs for the <a/> element. (This is relevant to Mediawiki, please keep reading)
Custom protocols or URNs have very limited usefulness to any site such as Wikipedia if the link will do nothing when clicked. This proposal allows:
- specification of protocols to be tried first as part of a link (<a uris="..."/>), and failing that, falling back to 'href' (which will work fine in non-supporting browsers).
- specification of protocols that can be auto-detected by a supporting browser and opened via right-click or the like, but which does not override the "href" attribute by default.
The editor of the HTML5 specification suggested that I try this out first as an extension (which I did at https://addons.mozilla.org/en-US/firefox/addon/162154/ ) so that it could be gauged whether there were sufficient interest in the community for this kind of functionality.
Given that HTML5 is to support custom protocols, and given the failure of potentially useful URNs from taking off, I think it is pretty obvious that something must be done to foster experimentation with URNs and non-HTTP protcols since no one wants to click a link that does nothing.
I believe that given Mediawiki's reach, and its interest in both being of service to its users and being a neutral party, I believe Mediawiki in particular would be most suited for trying out this functionality.
Use of @uris (where priority is given to @href) might be usable within some form of markup to indicate that a link should try the given protocol first (e.g., an XMPP link when the subject was information about a chatting forum). But of even greater interest to Mediawiki might be @alternateURIs where you could link to say your own page about an ISBN, but allow this attribute to be added to cue browsers (or for now, at least users of the Open URIs Firefox extension) to be able to right-click to try out their own registered handler for ISBNs.
Do you also see the potential for Mediawiki here? You already handle ISBNs in a similar way, but this does requires extra steps (and bandwidth) and doesn't offer the complete control that client-side flexibility can offer.
I know this is still non-standard, but there is a chicken-and-egg scenario here in that HTML5 doesn't seem willing to implement given other priorities without some experience and indication of wider interest. Would you be interested to support this? It should not disrupt anything for your current users.
Thank you...
Version: unspecified
Severity: enhancement