User "Krinkle" posted a comment on MediaWiki.r96188. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96188#c21853 Commit summary:
Expand r96170's support for space separated attributes with support for boolean keys such as array( 'class' => array( 'selected' => true ) ) to match our array( 'checked' => false ) support. As per discussion with Krinkle make sure that in array( 'foo', 'foo' => false, 'foo' ) the 'foo' key is authoritive. Comment: So, to repeat the example Dantman gave on IRC: <pre> $isSelected = someFunc(); Html::element( 'input', array( 'selected' => $isSelected ) ); _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
