Skip to content
This repository was archived by the owner on Aug 10, 2020. It is now read-only.
This repository was archived by the owner on Aug 10, 2020. It is now read-only.

role=search #7

@yellowled

Description

@yellowled

Adding role=search would be another great addition. Of course, this is a little more complicated since search doesn't have a specific HTML5 element to assign it to. The way I understand it, the WAI-ARIA spec leaves the possibility to add it to different elements than form.

Anyway, I've fiddled a possible solution in jQuery as a starting point. This might not be the most efficient/elegant solution. Not sure if the universal selector and/or .has() might impose a performance issue here.

Might be another candidate to add just manually like main etc.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions