* @covers Html::expandAttributes
*/
public function testExpandAttributesSkipsNullAndFalse() {
-
# ## EMPTY ########
$this->assertEmpty(
Html::expandAttributes( [ 'foo' => null ] ),
Html::expandAttributes( [ 'zero' => 0 ] ),
'Number 0 value needs no quotes'
);
-
}
/**
/**
* How do we handle duplicate keys in HTML attributes expansion?
* We could pass a "class" the values: 'GREEN' and array( 'GREEN' => false )
- * The later will take precedence.
+ * The latter will take precedence.
*
* Feature added by r96188
* @covers Html::expandAttributes
/**
* List of input element types values introduced by HTML5
- * Full list at http://www.w3.org/TR/html-markup/input.html
+ * Full list at https://www.w3.org/TR/html-markup/input.html
*/
public static function provideHtml5InputTypes() {
$types = [
'canvas', [ 'width' => 300 ]
];
- $cases[] = [ '<command/>',
- 'command', [ 'type' => 'command' ]
- ];
-
$cases[] = [ '<form></form>',
'form', [ 'action' => 'GET' ]
];