How can I add an attribute without a value when using Brick->attr()?
Closed this issue · 1 comments
seehat commented
If i specify no value or an empty string like $tag->attr('itemscope', '');
the value is returned instead of added to the attr
array.
lukasbestle commented
Use $tag->attr('itemscope', true);
.