diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 15cc2788d..e48afe27d 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -250,6 +250,7 @@ property on the headline itself.")
if(null != target) {
elem.classList.remove(\"code-highlighted\");
target.classList.remove(\"code-highlighted\");
+ }
}
// @license-end
"