Actions
Feature #90181
openTagBuilder does not support boolean attributes without values
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.
Actions