Support for name attribute in <details> element

When grouping several details elements, you can do so with the name attribute. For some reason, it doesn’t work on Anki (not supported I suppose), which makes grouping those elements unnecessarily harder, needing to rely on JavaScript.

If is something on Anki’s side, please consider supporting the attribute. If it depends on a third party then there is nothing to do I guess.

As I said before, it can be solved with JavaScript, but the HTML native solution is much more convenient.

Current anki is using a web view based on chromium 112, but name attribute is supported only in versions starting chromium 120. You will have to wait for an update, or use a javascript shim for now.

2 Likes