Permalink
Browse files

MDL-30921 output: Added the main role to the main content area

  • Loading branch information...
1 parent 5c4581f commit 537ba512e53bd369dd4796449d5933c9d0e5fe4b Sam Hemelryk committed Oct 19, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/outputrenderers.php
@@ -492,7 +492,13 @@ public function standard_footer_html() {
* @return string HTML fragment.
*/
public function main_content() {
- return $this->unique_main_content_token;
+ // This is here because it is the only place we can inject the "main" role over the entire main content area
+ // without requiring all theme's to manually do it, and without creating yet another thing people need to
+ // remember in the theme.
+ // This is an unfortunate hack. DO NO EVER add anything more here.
+ // DO NOT add classes.
+ // DO NOT add an id.
+ return '<div role="main">'.$this->unique_main_content_token.'</div>';
}
/**

0 comments on commit 537ba51

Please sign in to comment.