Project

General

Profile

Actions

Feature #90181

open

TagBuilder does not support boolean attributes without values

Added by Christian Eßl almost 5 years ago. Updated over 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 (0 open3 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 expectedRejected2021-08-18

Actions
Actions

Also available in: Atom PDF