From 6c5e7dfce19425af6e646c8b4578d15f2512d4ad Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 25 Mar 2015 18:06:47 -0700 Subject: rm redundant aria-hidden usage from Modals; fixes #16020 --- js/modal.js | 5 +---- js/tests/unit/modal.js | 28 ---------------------------- js/tests/visual/modal.html | 2 +- 3 files changed, 2 insertions(+), 33 deletions(-) (limited to 'js') diff --git a/js/modal.js b/js/modal.js index b031becfd..0426561af 100644 --- a/js/modal.js +++ b/js/modal.js @@ -90,9 +90,7 @@ that.$element[0].offsetWidth // force reflow } - that.$element - .addClass('in') - .attr('aria-hidden', false) + that.$element.addClass('in') that.enforceFocus() @@ -126,7 +124,6 @@ this.$element .removeClass('in') - .attr('aria-hidden', true) .off('click.dismiss.bs.modal') .off('mouseup.dismiss.bs.modal') diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index c6e747a3c..3c51c2fe2 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -49,18 +49,6 @@ $(function () { .bootstrapModal('show') }) - QUnit.test('should set aria-hidden to false when show method is called', function (assert) { - assert.expect(1) - var done = assert.async() - - $('