Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)75k · #2725

aria-deprecated-role

Skill này làm gì

Skill này tìm các vai trò ARIA đã lỗi thời hoặc không nên dùng trong HTML. Nó dành cho lập trình viên muốn đánh dấu của mình hoạt động tốt trên nhiều trình duyệt và công nghệ hỗ trợ.

Khi nào nên dùng

  • ✓Khi bạn thấy một vai trò như directory trong code.
  • ✓Khi bạn cập nhật đánh dấu cũ theo tiêu chuẩn khả năng tiếp cận hiện tại.
  • ✓Khi một phần tử HTML gốc có thể thay thế một vai trò tùy chỉnh.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-deprecated-role/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-deprecated-role/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tìm các vai trò ARIA cũ trong template của tôi và cho tôi biết nên dùng gì thay thế.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tìm các vai trò lỗi thời hoặc trừu tượng trong đánh dấu, rồi thay bằng vai trò hiện tại hoặc phần tử HTML đơn giản hơn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Avoid using deprecated ARIA roles

Using deprecated roles can lead to inconsistent behavior across different browsers and screen readers as they transition to newer standards.

Quick Reference

  • Deprecated ARIA roles should be replaced with modern equivalents
  • Browsers may drop support for deprecated roles in future versions
  • Ensures long-term compatibility with assistive technologies

Check

Search the codebase for deprecated ARIA roles like directory or abstract roles that shouldn't be used in HTML.

Fix

Update deprecated ARIA roles to their modern recommended equivalents or use native HTML elements.

Explain

Explain the risks of using deprecated ARIA roles and the benefits of moving to modern ARIA standards.

Code Review

Review the rendered markup and interactive states that affect Avoid using deprecated ARIA roles. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/accessibility/aria-deprecated-role

Câu hỏi thường gặp

Vì sao vai trò lỗi thời là vấn đề?

Skill nói trình duyệt và trình đọc màn hình có thể hoạt động không nhất quán với chúng, và hỗ trợ có thể bị bỏ sau này.

Vai trò trừu tượng (abstract role) là gì?

Skill nói vai trò trừu tượng chỉ dành cho đặc tả và không nên xuất hiện trong HTML.

Có lựa chọn nào đơn giản hơn ARIA không?

Có. Skill gợi ý dùng phần tử HTML gốc khi chúng có thể làm cùng việc.

Chi tiết

Mô tả gốc của tác giả

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Avoid using deprecated ARIA roles. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2725
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự