W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2011

[whatwg] Proposal: <intent> tag for Web Intents API

From: Greg Billock <gbillock@google.com>
Date: Wed, 14 Dec 2011 14:05:37 -0800
Message-ID: <CAAxVY9daR+kuCwX+Wn2+YnqvE5oqeA3_-1kz8Uk6OodHP83xew@mail.gmail.com>
Anne van Kesteren wrote:

> We can just add additional attributes to <meta> you know. We have done the
> same for <link>. E.g. for <link rel=icon> you can specify a sizes
> attribute.

That sounds like an interesting option. So instead of having

<intent action="..." type="..." href="..." title="..."
disposition="..."></intent>

we'd have

<meta name="intent" action="..." type="..." href="..." title="..."
disposition="..."></meta>

If we want alternate layout in the body, would we also need to change
the requirement
that <meta> have the |itemprop| attribute in that context?

I do think this approach has much better developer ergonomics than a
collection of tags like

<meta name="intent-action" content="...">
<meta name="intent-type" content="...">
<meta name="intent-disposition" content="...">

The big ergonomic sticking point there is probably the |href|
attribute, which we envision
being able to do same-origin registration. Perhaps a similar <link
rel="intent"> tag
modification would be able to do that, though. Is that what you'd
suggest? Do you think
having two tags involved would be confusing?

-Greg Billock
Received on Wednesday, 14 December 2011 14:05:37 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:38 UTC