fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2012-07-12 10:27 am

[dw-nonfree] Apply WAI-ARIA roles where appropriate to the site skin structure

[commit: http://hg.dwscoalition.org/dw-nonfree/rev/9e90dcdeb589]

http://bugs.dwscoalition.org/show_bug.cgi?id=4361

WAI-ARIA role landmarks for non-free

Patch by [personal profile] deborah.

Files modified:
  • schemes/tropo-common.tt
--------------------------------------------------------------------------------
diff -r d7300bda3a08 -r 9e90dcdeb589 schemes/tropo-common.tt
--- a/schemes/tropo-common.tt	Fri Jun 15 02:39:22 2012 +0000
+++ b/schemes/tropo-common.tt	Thu Jul 12 18:30:33 2012 +0800
@@ -43,24 +43,26 @@
     <body [% sections.bodyopts %]>
         <div id="canvas">
             <div id="page">
-                <div id="masthead">
+                <div id="masthead" role="banner">
                     <span id="logo">
                         [% PROCESS block.logo %]
                     </span>
                 </div>
 
-                <div id="content" [% sections.contentopts %]>
+                <div id="content" role="main" [% sections.contentopts %]>
                 <h1>[% sections.title %]</h1>
                 [% content %]
                 </div>
-                <div id="account-links">
+                <div id="account-links" role="navigation">
                     [% PROCESS block.accountlinks %]
                 </div>
-                <div id="menu">
+                <div id="menu" role="navigation">
                     [% PROCESS block.menunav %]
+                    <div role="search">
                     [% dw_scheme.search_render %]
+                    </div>
                 </div>
-                <div id="footer">
+                <div id="footer" role="contentinfo">
                     [% PROCESS block.footer %]
                 </div>
             </div>
--------------------------------------------------------------------------------