Support boolean attributes in drupal_attributes()

Created on 27 January 2017, almost 8 years ago
Updated 21 October 2022, about 2 years ago

drupal_attributes() should allow boolean values and should output in a way that is consistent with the boolean attribute definition in HTML5. This means omitting attributes that are FALSE and including only the name of attributes that are TRUE.

https://www.w3.org/TR/html5/infrastructure.html#boolean-attributes

🐛 Bug report
Status

RTBC

Version

7.0 ⚰️

Component
Base 

Last updated about 11 hours ago

Created by

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Live updates comments and jobs are added and updated live.
  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

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