Re: [css-d] Question regarding the use of section

2013-04-18 Thread Markus Ernst

Am 18.04.2013 16:39 schrieb Nancy Johnson:

When I first went live with a website a few months ago, the following
code validated and now it doesn't.   Why?

section role=main


Strange enough: the specs at WHATWG allow main as a value of @role in 
the section element:

http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#wai-aria
http://developers.whatwg.org/content-models.html#wai-aria
Role must be either alert, alertdialog, application, contentinfo, 
dialog, document, log, main, marquee, region, search, or status



__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Question regarding the use of section

2013-04-18 Thread John D
I would change it to:

section id=mainYou are using correct doctype right?  !DOCTYPE html

Hope this helps.


 When I first went live with a website a few months ago, the following
 code validated and now it doesn't.   Why?
 
 section role=main
 

  
__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Question regarding the use of section

2013-04-18 Thread Tom Livingston
On Thu, Apr 18, 2013 at 12:12 PM, John D xfs...@hotmail.com wrote:
 I would change it to:

 section id=mainYou are using correct doctype right?  !DOCTYPE html

 Hope this helps.


 When I first went live with a website a few months ago, the following
 code validated and now it doesn't.   Why?

 section role=main



I admit to still being confused by the proper use of section and
article. I was waiting for the dust to settle on them (which it
probably has by now) and in the meantime, I use:

div class=main role=main/div

2¢

--

Tom Livingston | Senior Front-End Developer | Media Logic |
ph: 518.456.3015x231 | fx: 518.456.4279 | mlinc.com
__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Re: [css-d] Question regarding the use of section

2013-04-18 Thread Philip TAYLOR


Nancy Johnson wrote:

 When I first went live with a website a few months ago, the following
 code validated and now it doesn't.   Why?
 
 section role=main
 
 Thank you,
 
 Nancy Johnson

Validation takes place in a context; with no knowledge
of the context in which you used this construct a few
months ago, and the context in which you are using it
today, it is impossible to answer your question.  But
you should be aware that if you are using the experimental
HTML 5 validator, there is no guarantee that anything
that it regards as valid today will still be valid tomorrow
(and vice versa), as unlike the stable HTML 4.01 validator
there is as yet no W3C Recommendation for HTML 5.

http://www.w3.org/TR/#tr_HTML

Philip Taylor
__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Question regarding the use of section

2013-04-18 Thread Tim Arnold
On Thu, Apr 18, 2013 at 10:39 AM, Nancy Johnson njohnso...@gmail.com wrote:

 When I first went live with a website a few months ago, the following
 code validated and now it doesn't.   Why?

 section role=main

 Thank you,

 Nancy Johnson


Nancy,

I'm not sure why it validated before, but generally ARIA roles do not
pass validation.  I'd just ignore the error in this case and just
ensure that you are using the roles correctly.  If that section is
wrapping your main content, and it contains a heading of some sort (h1
fer example) tag, you're good to go.  Smarter thoughts than mine from
Steve Faulkner:
http://blog.paciellogroup.com/2009/01/how-can-i-validate-xhtml-aria/

Tim


--

tim.arn...@gmail.com
__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Question regarding the use of section

2013-04-18 Thread Jay Tanna
AFAIK, Section's role is implied but if you want to make it specific then you 
should be using DIV.  For example this code would validate:


div id=section role=main
   This is a section of my page!
/div

Lots of HTML tags will not accept the role attribute.  Don't know why but it 
could be because their meaning is obvious.  H tags are for headings so it won't 
accept role attribute.


--- On Thu, 18/4/13, Nancy Johnson njohnso...@gmail.com wrote:


 When I first went live with a website
 a few months ago, the following
 code validated and now it doesn't.   Why?
 
 section role=main
 

__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/