WordPress / WordPress/WordPress-Coding-Standards
A11y: Restrict title attribute to iframe element
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 2.8k
- Forks
- 521
- Avg merge
- 5d 20h
- Merged PRs (30d)
- 1
Description
I'd like to consider what sniffs could be written that address programatically testable accessibility concerns.
The first is to check for the use of the title attribute, and flag it as an error, if it's not inside an iframe element.
This may well be covered with the theme check sniffs, but wanted to get discussion on this started anyway.
cc @afercia.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the existing theme check sniffs and the discussion in this issue before deciding on an implementation approach. Determine whether a sniff should flag title attributes outside iframe elements, and define tests that cover the intended accessibility rule.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- accessibility, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100