getkirby-v2/toolkit

How can I add an attribute without a value when using Brick->attr()?

Closed this issue · 1 comments

If i specify no value or an empty string like $tag->attr('itemscope', ''); the value is returned instead of added to the attr array.

Use $tag->attr('itemscope', true);.