[wp-trac] [WordPress Trac] #26504: Semantic elements for non-link links
WordPress Trac
noreply at wordpress.org
Tue Oct 29 15:57:40 UTC 2024
#26504: Semantic elements for non-link links
-------------------------------------+-------------------------------------
Reporter: GaryJ | Owner: joedolson
Type: task (blessed) | Status: accepted
Priority: normal | Milestone: 6.8
Component: Administration | Version: 3.8
Severity: normal | Resolution:
Keywords: semantic-buttons a11y- | Focuses: ui, accessibility,
task needs-patch | javascript
-------------------------------------+-------------------------------------
Changes (by joedolson):
* milestone: Future Release => 6.8
Comment:
One major decision that needs to be addressed is whether WordPress will
continue to support the 'no JS' scenario in core. Historically, it has
used links to perform button actions when the action is supported without
JS. But, practically speaking, the no JS scenario is increasingly rare and
- more importantly - very poorly tested, so it is extremely unpredictable
what will and won't work without jS.
If we end the practice of supporting the no JS scenario, we can relatively
easily fix these issues by switching a large number of links to buttons.
Shifting all links that behave as buttons to actually be buttons would
make the most common user interface significantly more consistent and
stable.
See also discussions in #60663, particularly in the associated PR.
Pinging @afercia for an opinion on ending the practice of supporting link
behaviors for interactions that are executed via AJAX.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26504#comment:62>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list