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

aria-valid-attr

Skill này làm gì

Skill này kiểm tra xem mọi tên thuộc tính aria trên trang có phải là tên chuẩn, có thật hay không. Skill dành cho lập trình viên viết đánh dấu có hỗ trợ truy cập bằng tay.

Khi nào nên dùng

  • ✓Khi bạn gõ thuộc tính aria vào HTML hoặc template.
  • ✓Khi trình đọc màn hình bỏ qua một thuộc tính bạn đã thêm.
  • ✓Khi bạn rà soát code do người khác viết để tìm lỗi ARIA.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-valid-attr/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-valid-attr/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

“Hãy tìm các thuộc tính aria bị viết sai trong mã điều hướng của website tôi và sửa lại.”

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

Cách hoạt động

Agent liệt kê các thuộc tính aria dùng trên từng phần tử, rồi thay những tên bị viết sai hoặc không có trong đặc tả WAI-ARIA.

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.

Ensure ARIA attributes are valid

Invalid ARIA attributes are ignored by browsers and screen readers, potentially leaving users with disabilities unable to navigate or understand the interface.

Quick Reference

  • Use only valid, standard-defined ARIA attributes
  • Avoid misspelled or non-existent aria-* properties
  • Ensure screen readers correctly interpret element roles and states

Check

Identify any invalid or misspelled ARIA attributes on HTML elements.

Fix

Replace invalid ARIA attributes with their correct names as defined in the WAI-ARIA specification.

Explain

Explain how valid ARIA attributes enable assistive technologies to communicate element state and behavior to users.

Code Review

Review the rendered markup and interactive states that affect Ensure ARIA attributes are valid. 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-valid-attr

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

Điều gì xảy ra với thuộc tính ARIA không hợp lệ?

Skill nói rằng trình duyệt và trình đọc màn hình sẽ bỏ qua nó, nên sự trợ giúp đã định không đến được người dùng.

Tên đúng lấy từ đâu?

Skill dùng đặc tả WAI-ARIA làm tài liệu tham chiếu.

Skill này có kiểm tra cả giá trị không?

Không. Giá trị được kiểm tra ở một bước khá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 Ensure ARIA attributes are valid. 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
#2743
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ự