From fb1ca10b99edc0f92eddd68b840f021da942afe9 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Tue, 15 Jul 2014 11:39:27 +0100 Subject: ARIA support for collapse Added handling of aria-expanded=true/false to collapse.js, updated documentation to include advice on making expand/collapse controls accessible, updated examples and javascript documentation to use aria-expanded and aria-controls (when targetting single collapsible element, using ID rather than class selector) Closes #14147. Closes #14153. --- js/tests/unit/collapse.js | 67 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 65 insertions(+), 2 deletions(-) (limited to 'js/tests') diff --git a/js/tests/unit/collapse.js b/js/tests/unit/collapse.js index ffa8f7e6d..5d5849388 100644 --- a/js/tests/unit/collapse.js +++ b/js/tests/unit/collapse.js @@ -75,7 +75,7 @@ $(function () { test('should remove "collapsed" class from target when collapse is shown', function () { stop() - var $target = $('').appendTo('#qunit-fixture') + var $target = $('
').appendTo('#qunit-fixture') + + $('