diff options
author | Tim Baumann <tim@timbaumann.info> | 2017-10-09 18:33:09 +0200 |
---|---|---|
committer | Alexander Biehl <alexbiehl@gmail.com> | 2017-10-09 18:33:09 +0200 |
commit | e41c1cbe9f0476997eac7b4a3f17cbc6b2262faf (patch) | |
tree | 630d1956d5c94e7fcbc185027d211c64213597b4 /html-test/ref/SpuriousSuperclassConstraints.html | |
parent | 406030f2782590799e44470da7ca80e85f3cf026 (diff) |
Use <details> element for collapsibles (#690)
* Remove unnecessary call to 'collapseSection'
The call is unnecessary since there is no corresponding toggle for hiding the
section of orphan instances.
* Use <details> for collapsibles
This makes them work even when JS is disabled. Closes #560.
Diffstat (limited to 'html-test/ref/SpuriousSuperclassConstraints.html')
-rw-r--r-- | html-test/ref/SpuriousSuperclassConstraints.html | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/html-test/ref/SpuriousSuperclassConstraints.html b/html-test/ref/SpuriousSuperclassConstraints.html index a1157b5d..53421ff5 100644 --- a/html-test/ref/SpuriousSuperclassConstraints.html +++ b/html-test/ref/SpuriousSuperclassConstraints.html @@ -81,14 +81,14 @@ Fix spurious superclass constraints bug.</pre >#</a ></p ><div class="subs instances" - ><p id="control.i:SomeType" class="caption collapser" onclick="toggleSection('i:SomeType')" - >Instances</p - ><div id="section.i:SomeType" class="show" - ><table + ><details id="i:SomeType" open="open" + ><summary + >Instances</summary + ><table ><tr ><td class="src clearfix" ><span class="inst-left" - ><span id="control.i:id:SomeType:Functor:1" class="instance expander" onclick="toggleSection('i:id:SomeType:Functor:1')" + ><span class="instance details-toggle-control details-toggle" data-details-id="i:id:SomeType:Functor:1" ></span > <a href="#" >Functor</a @@ -103,8 +103,10 @@ Fix spurious superclass constraints bug.</pre ></tr ><tr ><td colspan="2" - ><div id="section.i:id:SomeType:Functor:1" class="inst-details hide" - ><div class="subs methods" + ><details id="i:id:SomeType:Functor:1" + ><summary class="hide-when-js-enabled" + >Instance details</summary + ><div class="subs methods" ><p class="caption" >Methods</p ><p class="src" @@ -128,13 +130,13 @@ Fix spurious superclass constraints bug.</pre >#</a ></p ></div - ></div + ></details ></td ></tr ><tr ><td class="src clearfix" ><span class="inst-left" - ><span id="control.i:id:SomeType:Applicative:2" class="instance expander" onclick="toggleSection('i:id:SomeType:Applicative:2')" + ><span class="instance details-toggle-control details-toggle" data-details-id="i:id:SomeType:Applicative:2" ></span > <a href="#" >Applicative</a @@ -151,8 +153,10 @@ Fix spurious superclass constraints bug.</pre ></tr ><tr ><td colspan="2" - ><div id="section.i:id:SomeType:Applicative:2" class="inst-details hide" - ><div class="subs methods" + ><details id="i:id:SomeType:Applicative:2" + ><summary class="hide-when-js-enabled" + >Instance details</summary + ><div class="subs methods" ><p class="caption" >Methods</p ><p class="src" @@ -212,11 +216,11 @@ Fix spurious superclass constraints bug.</pre >#</a ></p ></div - ></div + ></details ></td ></tr ></table - ></div + ></details ></div ></div ></div |