W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

Re: [whatwg] A plea to Hixie to adopt <main>

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Wed, 28 Nov 2012 08:28:42 +1100
Message-ID: <CAHp8n2=EWa6_3CBTsJeafiQBisWbF=fOd1cCXTCcxe=gDVAAtg@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: whatwg <whatwg@whatwg.org>
On Sat, Nov 17, 2012 at 11:01 AM, Ian Hickson <ian@hixie.ch> wrote:
[..]

>
> On Sat, 10 Nov 2012, Maciej Stachowiak wrote:
> >
> > I personally think <main> would be useful. I don't think it has a huge
> > benefit, but it has modest benefits, like <aside>, <header>, <footer>
> > and <section>. I also think the implementation costs are low. The
> > reasons I think it has some benefits:
> >
> > - Even though heuristics (such as the scooby-doo algorithm or even
> > guesses based on role or class, or the layout) will always be necessary
> > in some cases, it's still good to have a simple and relatively
> > trustworthy marker of the main content. This is useful both for
> > accessibility purposes and for other browser features that want to find
> > the main content. In many cases, we have found that even when semantics
> > can be heuristically inferred, having an explicit marker is still
> > useful. For example, you can usually guess that some text is an address,
> > but we still have a microformat that helps identify such data
> > unambiguously.
>
> But we already have this. The main content is whatever content isn't
> marked up as not being main content (anything not marked up with <header>,
> <aside>, <nav>, etc).
>

I tried to validate that claim. It's not really possible with today's Web
pages, since they haven't moved to making use of these elements, but I made
some educated guesses as to where they would be used sensibly on a normal
Web page. I have applied this to Google search results, Facebook user
pages, YouTube video pages, and Wikipedia articles as examples of some of
the most used content on the Web. You can see my results at
http://blog.gingertech.net/2012/11/28/the-use-cases-for-a-main-element-in-html/.

I believe that none of the heuristic approaches work 100% of the time. In
particular Scooby Doo doesn't work because there are far too many
layout-only elements that cannot be grasped with <header>, <aside> etc and
for which we cannot clearly say that the first top-level such element
should be regarded as the main content element.

Hope that bit of research helps.

Regards,
Silvia.
Received on Tuesday, 27 November 2012 21:48:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:11 GMT