You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0fe8d36
Browse filesBrowse the repository at this point in the historyBrowse files
Add a title attribute to rendered iframes for accessibility
Accessibility audits flag the iframe that branca renders in notebooks with
"frames must have an accessible name" (WCAG 2.1), because the iframe has no
title attribute (#213).
Emit a title attribute when one is available:
- Figure reuses its existing title, so Figure(title="...") now names both
the document <title> and the iframe.
- IFrame gains a title parameter.
When no title is set the output is byte-for-byte unchanged, so existing
maps are unaffected; the title is HTML-escaped so a value containing a
quote cannot break out of the attribute.
Builds on #235 (both touch the same iframe templates); the net new change
here is the title attribute.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments