Accessibility: Don't arbitrarily override role
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 7 Aug 2013 15:29:18 +0000 (17:29 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Wed, 7 Aug 2013 15:29:18 +0000 (17:29 +0200)
commit4b560a20b5600fd12c4a040af6918cd287185346
tree6efef48147be420c6c4f672771290b21fd95609f
parent866ff31d8a1a4650f8730c35985932c501284f54
Accessibility: Don't arbitrarily override role

Role overrides implicit role of an element. Since here we don't know
the original element type that we are overriding, we shouldn't just
set the role. It might break th, li etc items.

In the long term, we should add a jquery.accessibility lib that can
take into account things like this, without having to write a ton of
code.

Bug: 17616
Change-Id: Ie27df93acbc778396ad54abc5bde9abb3268a86d
Follow-up: If59590de159a2756bf5b859ce48a23e1af7650fa
resources/jquery/jquery.makeCollapsible.js