1
0
forked from rosa/hakurei

cmd/pkgserver: provide role descriptions for test nodes in web UI

This commit is contained in:
Kat
2026-03-23 00:47:42 +11:00
parent c9e56fca41
commit b8a1cd43e7

View File

@@ -306,8 +306,10 @@ export class DOMReporter implements Reporter {
if (!child) { if (!child) {
child = document.createElement("details"); child = document.createElement("details");
child.className = "test-node"; child.className = "test-node";
child.ariaRoleDescription = "test";
const summary = document.createElement("summary"); const summary = document.createElement("summary");
summary.appendChild(document.createTextNode(node)); summary.appendChild(document.createTextNode(node));
summary.ariaRoleDescription = "test name";
child.appendChild(summary); child.appendChild(summary);
parent.appendChild(child); parent.appendChild(child);
} }