Inconsistency in Attribute Rendering

Created on 8 February 2017, almost 8 years ago
Updated 1 August 2023, over 1 year ago

Discovered that the unit tests checking the attribute system have conflicting behaviors based on whether the attribute is handled as an array (most importantly CSS Classes), Boolean or not.

Boolean attributes behave as they should.

If the Attribute is an array then it is not to be in the rendered attribute if empty.

All other attributes are required by the test to return attribute="" when empty.

This issue thread is for discussing the ramifications of correcting this bug. For the moment the parent ticket I'm working on will implement the behavior expected in the tests. At a minimum this behavior needs to be documented.

πŸ› Bug report
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
RenderΒ  β†’

Last updated about 9 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States Aki Tendo

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Since there hasn't been a follow up to #14 going to close for now.

    If still an issue please reopen updating issue summary with more detail per 14

    Thanks!

Production build 0.71.5 2024