about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-25 15:20:41 -0400
committerJune McEnroe <june@causal.agency>2020-04-25 15:20:41 -0400
commit82a526badec7c6afe2937b84bed78883bf329bfb (patch)
treecc0f7c200a7cde831d883d89ac43c77dea6203f3
parentAccumulate thread envelopes before concatenation (diff)
downloadbubger-82a526badec7c6afe2937b84bed78883bf329bfb.tar.gz
bubger-82a526badec7c6afe2937b84bed78883bf329bfb.zip
Wrap <summary> replies count in <data>
-rw-r--r--html.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/html.c b/html.c
index 7281ac3..0d1ae11 100644
--- a/html.c
+++ b/html.c
@@ -372,7 +372,11 @@ static size_t threadCount(struct List thread) {
 int htmlSubthreadOpen(FILE *file, struct List thread) {
 	const char *template = TEMPLATE(
 		<details class="subthread" open>
-			<summary>[replies] repl[ies]</summary>
+		<summary>
+	) TEMPLATE(
+		<data class="replies" value="[replies]">[replies] repl[ies]</data>
+	) TEMPLATE(
+		</summary>
 	);
 	size_t count = threadCount(thread);
 	char replies[32];