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/QuasiExpr.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/QuasiExpr.html')
-rw-r--r-- | html-test/ref/QuasiExpr.html | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/html-test/ref/QuasiExpr.html b/html-test/ref/QuasiExpr.html index 6f8255b9..ccec6856 100644 --- a/html-test/ref/QuasiExpr.html +++ b/html-test/ref/QuasiExpr.html @@ -101,14 +101,14 @@ ></table ></div ><div class="subs instances" - ><p id="control.i:Expr" class="caption collapser" onclick="toggleSection('i:Expr')" - >Instances</p - ><div id="section.i:Expr" class="show" - ><table + ><details id="i:Expr" open="open" + ><summary + >Instances</summary + ><table ><tr ><td class="src clearfix" ><span class="inst-left" - ><span id="control.i:id:Expr:Show:1" class="instance expander" onclick="toggleSection('i:id:Expr:Show:1')" + ><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Expr:Show:1" ></span > <a href="#" >Show</a @@ -123,8 +123,10 @@ ></tr ><tr ><td colspan="2" - ><div id="section.i:id:Expr:Show:1" class="inst-details hide" - ><div class="subs methods" + ><details id="i:id:Expr:Show:1" + ><summary class="hide-when-js-enabled" + >Instance details</summary + ><div class="subs methods" ><p class="caption" >Methods</p ><p class="src" @@ -160,11 +162,11 @@ >#</a ></p ></div - ></div + ></details ></td ></tr ></table - ></div + ></details ></div ></div ><div class="top" @@ -215,14 +217,14 @@ ></table ></div ><div class="subs instances" - ><p id="control.i:BinOp" class="caption collapser" onclick="toggleSection('i:BinOp')" - >Instances</p - ><div id="section.i:BinOp" class="show" - ><table + ><details id="i:BinOp" open="open" + ><summary + >Instances</summary + ><table ><tr ><td class="src clearfix" ><span class="inst-left" - ><span id="control.i:id:BinOp:Show:1" class="instance expander" onclick="toggleSection('i:id:BinOp:Show:1')" + ><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BinOp:Show:1" ></span > <a href="#" >Show</a @@ -237,8 +239,10 @@ ></tr ><tr ><td colspan="2" - ><div id="section.i:id:BinOp:Show:1" class="inst-details hide" - ><div class="subs methods" + ><details id="i:id:BinOp:Show:1" + ><summary class="hide-when-js-enabled" + >Instance details</summary + ><div class="subs methods" ><p class="caption" >Methods</p ><p class="src" @@ -274,11 +278,11 @@ >#</a ></p ></div - ></div + ></details ></td ></tr ></table - ></div + ></details ></div ></div ><div class="top" |