W3C home > Mailing lists > Public > public-html@w3.org > September 2012

Re: maincontent element

From: Steve Faulkner <faulkner.steve@gmail.com>
Date: Mon, 10 Sep 2012 09:36:45 +0200
Message-ID: <CA+ri+Vk-Qa8vhXTmzKrromWp_2NAv8Y1RtRN6ucL_2sKxPakOg@mail.gmail.com>
To: David Corvoysier <david.corvoysier@orange.com>
Cc: HTMLWG WG <public-html@w3.org>
Hi David,

new HTML5  elements such as article/footer/header/nav/section etc have
implicit mapping to ARIA roles which are being implemented in
browsers. This means that rather than having to add landmark roles to
elements, the semantics are (when implemented) conveyed through the
use of the element. This is a better approach for authors as it means
when they use the elements they get the semantics conveyed withou
having to add aria roles. The addition of a maincontent element would
complete the provision of native HTML semantic elements that convey
common and useful landmark structures.


regards
SteveF

On 10 September 2012 09:27, David Corvoysier
<david.corvoysier@orange.com> wrote:
> Hi,
>
> Sorry if I am missing something obvious here, but why wouldn't you want to
> use the ARIA role directly on an existing element:
> http://dev.w3.org/html5/spec/single-page.html#aria-role-attribute
> I typically use a section with a "main" role to identify and style my main
> content:
>
> Markup:
>
> <section role="main"></section>
>
> Stylesheet:
>
> section[role=main] {
> ...
> }
>
> Cheers
>
> David Corvoysier
>
> Le 09/09/2012 21:24, Steve Faulkner a écrit :
>
> There has been continued discussion [1] in other fora on the addition
> of an element that identifies the main content of a web page, the idea
> has been around for a long time.
>
> This element would formalise common the common practice [2] of using
> an id value such as "content" or "main" (typically on a div) to
> identify a container element for the main content area of a document
> or application. It would also provide an element that is a  HTML
> version of the ARIA role=main.
>
> I have put together a draft definition of such an element for
> consideration and discussion:
> http://www.html5accessibility.com/tests/maincontent.html
>
>
> [1]
> http://lists.w3.org/Archives/Public/public-whatwg-archive/2012Sep/0008.html
>
> >From publically reported studies  of id values used in HTML content,
> the use of the strings "content" and "main" are common practice.
> [2] http://triin.net/2006/06/12/CSS#figure-34,
> http://westciv.typepad.com/dog_or_higher/2005/11/real_world_sema.html
>
>



-- 
with regards

Steve Faulkner
Technical Director - TPG

www.paciellogroup.com | www.HTML5accessibility.com |
www.twitter.com/stevefaulkner
HTML5: Techniques for providing useful text alternatives -
dev.w3.org/html5/alt-techniques/
Web Accessibility Toolbar - www.paciellogroup.com/resources/wat-ie-about.html
Received on Monday, 10 September 2012 07:37:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:34 UTC