yiisoft / html

Handy library to generate HTML
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
55 stars 17 forks source link

Html::renderTagAttributes() Unable to have attributes that equal "" #216

Closed es-sayers closed 3 months ago

es-sayers commented 3 months ago

What steps will reproduce the problem?

Html::renderTagAttributes(['test' => ""]);

What is the expected result?

' test=""'

What do you get instead?

' test'

Additional info

Q A
Version 3.5
PHP version
Operating system
samdark commented 3 months ago

Why do you need empty attributes?

vjik commented 3 months ago

It's OK. See https://github.com/yiisoft/html/issues/79