a11y: appendix "cite as" entry has `role="listitem"` with no `role="list"` parent
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- accessibility
Hướng nghiên cứu
Issue đề cập đến src/format/html/format-html-appendix.ts, đặc biệt là extractCiteEl quanh các dòng 322–326 và mã appendix quanh các dòng 542–559. Hãy đọc cách phần tử cite được trích xuất và thêm vào, sau đó kết xuất ví dụ QMD được cung cấp với citation: true và kiểm tra markup appendix thu được. Hoàn thành khi mục cite không còn gây ra vi phạm aria-required-parent của axe-core; issue cho phép xóa role="listitem" hoặc thêm phần tử cha có role="list".
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
With citation: true, the "For attribution, please cite this work as" entry in the appendix is a div with role="listitem" and no role="list" ancestor.
axe-core reports this as aria-required-parent (critical, WCAG 2.0 A, SC 1.3.1 Info and Relationships).
Pandoc's citeproc wraps each csl-entry (role="listitem") in a role="list" container.
extractCiteEl takes the .csl-entry out of that container and returns it alone, and the appendix code appends it to the citation section.
- https://github.com/quarto-dev/quarto-cli/blob/69592e5c1718d3e1b2f3d11e757d32e23a16af67/src/format/html/format-html-appendix.ts#L322-L326
- https://github.com/quarto-dev/quarto-cli/blob/69592e5c1718d3e1b2f3d11e757d32e23a16af67/src/format/html/format-html-appendix.ts#L542-L559
#14755 reports the same defect for margin citations.
That issue is about a different code path, so a fix for the margin case does not cover the appendix.
Steps to reproduce
---
title: "Cite as test"
author: Jane Doe
date: 2026-01-01
citation: true
format: html
---
Content.
quarto render index.qmd
grep -o '<div[^>]*quarto-appendix-citeas[^>]*>' index.html
Actual behavior
<div id="ref-doe2026" class="csl-entry quarto-appendix-citeas" role="listitem">
There is no element with role="list" in the page.
Running the axe.min.js that ships with Quarto against the rendered page gives one aria-required-parent violation, on this element.
Expected behavior
The entry is not marked as a list item when it has no list parent, or it is placed inside an element with role="list".
Your environment
- IDE: none, terminal only
- OS: macOS (Darwin 27.0.0, Apple Silicon)
Quarto check output
Quarto 99.9.9
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.10.0: OK
Dart Sass version 1.101.0: OK
Deno version 2.7.14: OK
Typst version 0.15.1: OK
[✓] Checking Quarto installation......OK
Version: 99.9.9
commit: 69592e5c1718d3e1b2f3d11e757d32e23a16af67
- Ngôn ngữ chính
- JavaScript
- Star
- 6.1k
- Fork
- 478
- Merge trung bình
- 17 giờ 26 phút
- Pull request đã merge (30 ngày)
- 126
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của quarto-dev/quarto-cli
-
enhancement localization
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
quarto-dev/quarto-cli#15268 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
html maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
quarto-dev/quarto-cli#15261 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement websites
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
quarto-dev/quarto-cli#15255 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
quarto.json.decode does not raise on invalid JSON, so pcall cannot catch itCó thể đã có người làm @sogav21 đã nhận 3 ngày trước. Đang mởbug lua
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
quarto-dev/quarto-cli#15226 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
arrow-dark gives region markers a light band that fails contrastCó thể đã có người làm @vav7 đã nhận 3 ngày trước. Đang mởaccessibility bug themes
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
quarto-dev/quarto-cli#15222 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của quarto-dev/quarto-cli
Issue tương tự
-
[ordering-review] workshop order graph: 1 confirmed ordering problem, 3 cycles are false positivesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
githubnext/gh-aw-workshop#5331 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Remove: 21 SexturyĐang mởchannels:remove check:passed
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 4 ngày
-
[vika] console keeps a stale "in progress" turn after a daemon restart mid-runCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
volcengine/OpenViking#7011 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
__VERSION__ within dist build is not replaced, causes missing version in XDM implementation detailsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Issue: ready for confirmation Reported on 2.4.9 Triage: Dev.Experience
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
magento/magento2#41773 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày