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/Bug613.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/Bug613.html')
-rw-r--r-- | html-test/ref/Bug613.html | 94 |
1 files changed, 51 insertions, 43 deletions
diff --git a/html-test/ref/Bug613.html b/html-test/ref/Bug613.html index 45bf7bc4..765f18e1 100644 --- a/html-test/ref/Bug613.html +++ b/html-test/ref/Bug613.html @@ -39,28 +39,30 @@ >Bug613</p ></div ><div id="synopsis" - ><p id="control.syn" class="caption expander" onclick="toggleSection('syn')" - >Synopsis</p - ><ul id="section.syn" class="hide" onclick="toggleSection('syn')" - ><li class="src short" - ><span class="keyword" - >class</span - > <a href="#" - >Functor</a - > f <span class="keyword" - >where</span - ><ul class="subs" - ></ul - ></li + ><details id="syn" + ><summary + >Synopsis</summary + ><ul class="details-toggle" data-details-id="syn" ><li class="src short" - ><span class="keyword" - >data</span - > <a href="#" - >ThreeVars</a - > a0 a b = <a href="#" - >ThreeVars</a - > a b</li - ></ul + ><span class="keyword" + >class</span + > <a href="#" + >Functor</a + > f <span class="keyword" + >where</span + ><ul class="subs" + ></ul + ></li + ><li class="src short" + ><span class="keyword" + >data</span + > <a href="#" + >ThreeVars</a + > a0 a b = <a href="#" + >ThreeVars</a + > a b</li + ></ul + ></details ></div ><div id="interface" ><h1 @@ -95,14 +97,14 @@ ></p ></div ><div class="subs instances" - ><p id="control.i:Functor" class="caption collapser" onclick="toggleSection('i:Functor')" - >Instances</p - ><div id="section.i:Functor" class="show" - ><table + ><details id="i:Functor" open="open" + ><summary + >Instances</summary + ><table ><tr ><td class="src clearfix" ><span class="inst-left" - ><span id="control.i:ic:Functor:Functor:1" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:1')" + ><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:Functor:Functor:1" ></span > <a href="#" >Functor</a @@ -117,8 +119,10 @@ ></tr ><tr ><td colspan="2" - ><div id="section.i:ic:Functor:Functor:1" class="inst-details hide" - ><div class="subs methods" + ><details id="i:ic:Functor:Functor:1" + ><summary class="hide-when-js-enabled" + >Instance details</summary + ><div class="subs methods" ><p class="caption" >Methods</p ><p class="src" @@ -132,13 +136,13 @@ >#</a ></p ></div - ></div + ></details ></td ></tr ><tr ><td class="src clearfix" ><span class="inst-left" - ><span id="control.i:ic:Functor:Functor:2" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:2')" + ><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:Functor:Functor:2" ></span > <a href="#" >Functor</a @@ -153,8 +157,10 @@ ></tr ><tr ><td colspan="2" - ><div id="section.i:ic:Functor:Functor:2" class="inst-details hide" - ><div class="subs methods" + ><details id="i:ic:Functor:Functor:2" + ><summary class="hide-when-js-enabled" + >Instance details</summary + ><div class="subs methods" ><p class="caption" >Methods</p ><p class="src" @@ -168,11 +174,11 @@ >#</a ></p ></div - ></div + ></details ></td ></tr ></table - ></div + ></details ></div ></div ><div class="top" @@ -203,14 +209,14 @@ ></table ></div ><div class="subs instances" - ><p id="control.i:ThreeVars" class="caption collapser" onclick="toggleSection('i:ThreeVars')" - >Instances</p - ><div id="section.i:ThreeVars" class="show" - ><table + ><details id="i:ThreeVars" open="open" + ><summary + >Instances</summary + ><table ><tr ><td class="src clearfix" ><span class="inst-left" - ><span id="control.i:id:ThreeVars:Functor:1" class="instance expander" onclick="toggleSection('i:id:ThreeVars:Functor:1')" + ><span class="instance details-toggle-control details-toggle" data-details-id="i:id:ThreeVars:Functor:1" ></span > <a href="#" >Functor</a @@ -225,8 +231,10 @@ ></tr ><tr ><td colspan="2" - ><div id="section.i:id:ThreeVars:Functor:1" class="inst-details hide" - ><div class="subs methods" + ><details id="i:id:ThreeVars:Functor:1" + ><summary class="hide-when-js-enabled" + >Instance details</summary + ><div class="subs methods" ><p class="caption" >Methods</p ><p class="src" @@ -240,11 +248,11 @@ >#</a ></p ></div - ></div + ></details ></td ></tr ></table - ></div + ></details ></div ></div ></div |