Solution · code-edit

唯一 aria-current

對照完整答案、責任邊界與原因。

Solution 要做什麼

對照完整答案、責任邊界與原因。

本主題檔案:files/index.html

定位:先執行 querySelectorAll('[aria-current=page]').length。

本階段驗收

頁面不會替你修改檔案;請在實作檔完成後重新整理確認。

目前要處理

本地 fixture 已準備 唯一 aria-current 的最小資料,尚未執行驗收。

預期看到

每頁各一個 current target,六個 target 彼此唯一。

<a href='products.html' aria-current='page'>商品</a>

檔案清單

只在本階段資料夾內操作,避免改到其他章節。

證據:count=6、uniqueCount=6、valid=true

回到主題說明