W3C home > Mailing lists > Public > public-web-mobile@w3.org > November 2014

Re: Standardizing "cards" as UI component?

From: <chaals@yandex-team.ru>
Date: Tue, 25 Nov 2014 14:38:09 +0300
To: Dominique Hazael-Massieux <dom@w3.org>, "public-web-mobile@w3.org" <public-web-mobile@w3.org>
Message-Id: <6991416915489@webcorp02f.yandex-team.ru>
24.11.2014, 17:24, "Dominique Hazael-Massieux" <dom@w3.org>:
> A couple of weeks ago, Nova Spivack called on TechCrunch for W3C to
> standardize "Cards":
> http://techcrunch.com/2014/11/08/its-time-for-an-open-standard-for-cards/
>
> "Cards are modular, bite-sized content containers designed for easy
> consumption and interaction on small screens"

So, like combining a few webpages, a la frames? (Not WML cards, but something a bit more…)

> "Standardized cards will function like a cross between a MIME
> attachment, a page of HTML and JavaScript and applet. They will be
> portable, interactive, programmatic content experiences. They will work
> across apps, which will open a new era of cross-app interoperability,
> enabling powerful new forms of sharing and productivity."

Making them really portable means encapsulation, for script and styles. That's what BEM Blocks do in existing HTML, and frames did in the 90s.

Because each frame is a page, it has HTTP transactions, metadata, encapsulation, and so on.

> Does that suggestion resonate with people on this list? If a standard is
> indeed needed, can anyone see what kind of standard it would be? (is it
> new markup? new css properties? something else?)

Depends. If you want to scope scripts (so they don't clash with other stuff) you might find it worthwhile to think of markup.

In particular, as Marcos noted, something like iframe.

The key is making nice controllers for iframes, so the UI for flipping through a bunch of things is straightforward. But frames were developed for this 20 years ago - if you don't need an easy declarative framework, bookmarking, etc, you will have open standards to do all this in 1999 - although it might take 15 years to get things like cross-frame messaging, a maybe-as-much-as-half-baked security model, etc.

BEM shows a path toward making a declarative framework on top of this, rather than asking developers to make standard UI components themselves each time.

But I don't see anything actually new here.

cheers

--
Charles McCathie Nevile - web standards - CTO Office, Yandex
chaals@yandex-team.ru - - - Find more at http://yandex.com
Received on Tuesday, 25 November 2014 11:38:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:59:30 UTC