WordPress / WordPress/WordPress-Coding-Standards

A11y: Restrict title attribute to iframe element

Open
#605 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.