diff --git a/src/resources/formats/html/quarto.js b/src/resources/formats/html/quarto.js index e9c20bc6c8..f49812ebcb 100644 --- a/src/resources/formats/html/quarto.js +++ b/src/resources/formats/html/quarto.js @@ -742,7 +742,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) { // See if there is an active child to this element let hasActiveChild = false; - for (child of el.children) { + for (const child of el.children) { hasActiveChild = walk(child, depth) || hasActiveChild; }