merged table cells do not expose clear header relationships

未关闭
#2,826 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
typescript

调研方向

Start by reproducing the issue in a BlockNote table with merged cells and row/column headers, then inspect the generated DOM and existing table implementation. Compare the markup with the issue’s id/headers example and verify that assistive technologies can determine the applicable headers for merged cells.

由索引模型根据 Issue 内容生成。

描述

a11y
What’s broken?

This issue was identified during the Docs accessibility audit on a page containing table-related content.

Audited page:
https://docs.numerique.gouv.fr/docs/0d998bef-1b69-47ce-bd18-83d4d849c734/

In BlockNote tables, merged cells do not expose clear relationships with their related row and column headers.

When a table contains merged cells, the structure becomes more complex. However, the generated markup does not clearly indicate which headers apply to each merged cell.

There is no reliable id / headers relationship to help assistive technologies understand the table structure.

Because of this, screen readers may not be able to announce the correct header context for merged cells.

What did you expect to happen?

Merged cells should preserve clear relationships with their related table headers.

For complex tables, especially when cells are merged, BlockNote should expose relationships using id and headers.

Example:

<th id="q1">Q1</th>
<th id="north">North</th>
<td headers="north q1">120</td>
Steps to reproduce
  • Insert a table using BlockNote.
  • Create or use a table with merged cells and row/column headers.
  • Inspect the generated table in the DOM.
  • Notice that merged cells are not explicitly associated with their related headers:
  • no reliable id / headers relationship;
  • no clear semantic relationship allowing assistive technologies to identify which headers apply to the merged cell.
BlockNote version

0.51.4

主要语言
TypeScript
星标
10.2k
派生
772
平均合并
3 天 11 小时
30 天内合并 PR
17

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TypeCellOS/BlockNote 的其他 Issue

查看 TypeCellOS/BlockNote 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。