[yelp-xsl] mal2html-page: Set aria-controls for the About footer
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] mal2html-page: Set aria-controls for the About footer
- Date: Sun, 6 Nov 2011 23:34:30 +0000 (UTC)
commit e081d0205cab1a9795e4ae7bda973f7f2bfa653a
Author: Shaun McCance <shaunm gnome org>
Date: Sun Nov 6 12:37:00 2011 -0500
mal2html-page: Set aria-controls for the About footer
xslt/mallard/html/mal2html-page.xsl | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index a1240d1..d08b306 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -1050,6 +1050,9 @@ $(document).ready(function () {
$('div.about').each(function () {
var header = $(this).children('div.hgroup').children('h2');
var region = $(this).children('div.region');
+ if (region.attr('id') == '')
+ region.attr('id', yelp_generate_id());
+ header.attr('aria-controls', region.attr('id'));
region.attr('aria-expanded', 'false').hide();
header.click(function () {
if (region.attr('aria-expanded') == 'true')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]