diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 5a81c4ccf..d119c1739 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -249,6 +249,7 @@ property on the headline itself.")
if(null != target) {
elem.classList.remove(\"code-highlighted\");
target.classList.remove(\"code-highlighted\");
+ }
}
/*]]>*///-->
// @license-end