Link attribute for actions

Shaun McCance <shaunm at gnome.org>
Thu Jul 1 19:28:14 EDT 2010

On Thu, 2010-07-01 at 17:34 -0400, Jerry Casiano wrote:
> The "do it for me" sounds great and I'm sure would see a lot of use.
> Definitely nice to have available.
> 
> As far as the others they sound cool too, I just wonder if they'll
> actually be used all that much?

To be clear, I'm not proposing we put any policy in the Mallard
specification itself about what sorts of action links must be
supported. Action links are entirely up to implementations. It
may be useful to have a page somewhere that lists the action
schemes that various implementations use. But that would only
be a non-normative reference.

> The install one, for example, makes me wonder about cases where the
> package is already installed or not available, user isn't connected,
> etc. I think seeing an error after clicking it is probably worse than
> not having the option at all. But then I guess the specifics behind it
> would need to be implemented by each distro?

Yelp uses PackageKit for the install links. And at the moment,
if you have a package installed, the link is still there, and
you get a message saying it's already installed if you click.

I agree that's not ideal, but I don't want to block on calls
to PackageKit when rendering pages. So I'd need to add code
to modify pages after they've been presented to fix this.
This is possible now with the DOM bindings in WebKitGTK+,
but it's not at the top of my list. (It's high on the list,
just probably not high enough to make 3.0.)

At any rate, these are all implementation issues with specific
action link schemes, and shouldn't really affect the viability
of the proposed new syntax.

--
Shaun