forked from rosa/hakurei
cmd/pkgserver: provide role descriptions for test nodes in web UI
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user