From 0aab3bdf5a97eea7c60378f803d7610b10425557 Mon Sep 17 00:00:00 2001 From: Robin Scholtes Date: Tue, 23 May 2023 20:08:20 +1200 Subject: [PATCH] [#181] add a note for later refactoring --- src/web/HTMLCategory.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/web/HTMLCategory.mjs b/src/web/HTMLCategory.mjs index 77df0ed2..74f88a5e 100755 --- a/src/web/HTMLCategory.mjs +++ b/src/web/HTMLCategory.mjs @@ -36,6 +36,10 @@ class HTMLCategory { * Renders the category and all operations within it in HTML. * * @returns {string} + * + * @TODO: it will be better if this, and the other HTMLX.js, toHTML() functions + * created HTML elements rather than insert and change stringified html, but that + * would be part of a bigger refactoring adventure */ toHtml() { const catName = "cat" + this.name.replace(/[\s/\-:_]/g, "");