Apply and use data-drupal-selector consistently.

Created on 22 June 2015, over 9 years ago
Updated 15 January 2025, 21 days ago

Problem/Motivation

#1305882: drupal_html_id() considered harmful; remove ajax_html_ids to use GET (not POST) AJAX requests adds data-drupal-selector to wean us off targeting IDs with JavaScript.

However this not applied to all form elements.

Proposed resolution

Add it to at least the following elements:

  • Radios
  • Checkboxes
  • Date elements
  • potentially more ...

Remaining tasks

Revive parts of the more complete patches from #1305882: drupal_html_id() considered harmful; remove ajax_html_ids to use GET (not POST) AJAX requests and continue from there.

User interface changes

API changes

Data model changes

🌱 Plan
Status

Active

Version

11.0 🔥

Component

base system

Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024