Line #394 tests for a truthy $value when setting an attribute. This doesn't allow me to specify an empty attribute. For example, I want to set the attribute "itemscope", a required attributed for HTML5/Schema.org microdata. If I specify:
$item->itemscope = "";
The itemscope attribute is not set on the element as line #397 removes it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Line #394 tests for a truthy $value when setting an attribute. This doesn't allow me to specify an empty attribute. For example, I want to set the attribute "itemscope", a required attributed for HTML5/Schema.org microdata. If I specify:
$item->itemscope = "";
The itemscope attribute is not set on the element as line #397 removes it.