Skip to content

Commit e294e7d

Browse files
committed
doc/template.html: event.toElement is non-standard, use event.target instead
Fixes expanding of navigation menu in firefox
1 parent 0a5201e commit e294e7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ <h3 class="date">$date$</h3>
9696
element.className = 'collapsible';
9797
element.setAttribute('state', 'collapsed');
9898
element.onclick = function(event) {
99-
if (event.toElement != this) return;
99+
if (event.target != this) return;
100100
if (this.getAttribute('state') == 'collapsed') {
101101
this.removeAttribute('state');
102102
} else {

0 commit comments

Comments
 (0)