Issue Task Resolved

#110769Allow boolean and arbitrary values in HTML attributes

Benni Mack 09/23/26, 20:45 updated 09/30/26, 07:35

Description

GeneralUtility::implodeAttributes() can only produce name=“value” pairs. Every value is cast to a string, so true becomes defer=“1”, which isn’t valid HTML5. false and null render as x=”“ or are dropped depending on flags. Arrays and objects can’t be passed at all. The same limitation led to several places building tags by hand, with duplicated escaping and inconsistent handling of boolean attributes.

Reviews 2

History 24

  1. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-30T07:35:09+00:00" > 09/30/26, 07:35 </span>

    Applied in changeset commit:6f4394be9ffad934053fb8b5d8e9cffc16a68e32.