Review 12.4 Merged

85239[BUGFIX] Properly handle boolean attribute in language packs

Oli Bartsch CR +2 V +2 Easy +2 −2 updated 07/12/24, 07:00

Commit message

When using boolean attributes there are two things to
consider:

1. The default value must be FALSE
2. Presence of the attribute always means TRUE

It's therefore not possible to have a boolean
attribute, which defaults to TURE and it's
also not possible to set an attribute to
FALSE via its value (e.g. "0" or "false).

See for reference: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes

Therefore, to properly handle the "is writeable"
state in the language packs module, the
default is set to FALSE an the attribute
only gets added (which defines the TRUE state)
in case corresponding data attribute is
set in the template.

Review

  • Code review CR +2 Done
    • Oli Bartsch +2
  • Verified V +2 Done
    • Oli Bartsch +2
    • core-ci +1 CI

Issues 1

Files 2

Review log 34

  1. Oli Bartsch uploaded patch set 1 07/12/24, 06:48

  2. core-ci voted on patch set 1 V +1 07/12/24, 06:53 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/61455

  3. Oli Bartsch voted on patch set 1 CR +2 V +2 07/12/24, 07:00

  4. Oli Bartsch merged patch set 2 07/12/24, 07:00