From a922e52b8f4e11233d1c3b79c41d5f046b08d7ba Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 17 Jun 2015 10:15:08 -0700 Subject: [PATCH] HTML Exporter: make JS work on Firefox as well It appears the standard way to figure out what type of element is sending the event is to use .target instead of .toElement - specifically, Firefox doesn't understand .toElement and so the expansion of dives by clicking on them didn't work in Firefox. Signed-off-by: Dirk Hohndel --- theme/list_lib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/list_lib.js b/theme/list_lib.js index a2a50f8f5..eb26b1eaa 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -167,7 +167,7 @@ function setNumberOfDives(e) function toggleExpantion(e, ul) { - if (e.toElement.localName === "a" ) { + if (e.target.localName === "a" ) { return; } if (!items[ul.id].expanded) {