Skip to content

Commit

Permalink
docs: add todo for "desc" selection
Browse files Browse the repository at this point in the history
  • Loading branch information
pkra committed Dec 10, 2023
1 parent 2b1ebe2 commit 9f38710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/aria.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function ariaAttributeReferences() {
// sp.id = title;
sp.setAttribute("aria-describedby", "desc-" + title);
const dRef = item.nextElementSibling;
const desc = cloneWithoutIds(dRef.firstElementChild).innerHTML;
const desc = cloneWithoutIds(dRef.firstElementChild).innerHTML; // TODO: should the spec markup provide something more robust than "next sibling first child"? [same for sdef/pdef "desc"]
dRef.id = "desc-" + title;
dRef.setAttribute("role", "definition");
container.replaceChild(sp, item);
Expand Down

0 comments on commit 9f38710

Please sign in to comment.