Project

General

Profile

Actions

Feature #90181

open

TagBuilder does not support boolean attributes without values

Added by Christian Eßl over 4 years ago. Updated about 4 years ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2020-01-23
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

TagBuilder::addAttribute() currently cannot add boolean attributes without a value, like:

<input disabled>

To add such an attribute with the TagBuilder, you would currently be required to write something like:

$this->tag->addAttribute('disabled', 'disabled');

which results in:

<input disabled="disabled">

Which is valid, but unnecessary.


Related issues 3 (1 open2 closed)

Related to TYPO3 Core - Feature #90386: Deprecate all form-related ViewHelpers except for f:form in favor of a single "form field name" ViewHelperRejected2020-02-15

Actions
Related to TYPO3 Core - Task #90871: Change AssetCollector ViewHelpers attributes async, defer, nomodule, disabled to booleanClosed2020-03-28

Actions
Related to TYPO3 Core - Bug #94927: <f:form novalidate="false" /> does not work as expectedUnder Review2021-08-18

Actions
Actions

Also available in: Atom PDF