We use the later since that's what xhtml1 required [http://www.w3.org/TR/xhtml1/#h-4.5].
'Boolean attributes do not generates output when value is null'
);
- ### FIXME: maybe they should just output 'selected'
$this->AssertEquals(
- ' selected=""',
+ ' selected="selected"',
Html::expandAttributes( array( 'selected'=>true ) ),
'Boolean attributes skip value output'
);
$this->AssertEquals(
- ' selected=""',
+ ' selected="selected"',
Html::expandAttributes( array( 'selected' ) ),
'Boolean attributes (ex: selected) do not need a value'
);