I have found ( specially when designing extensions ) that the 1 level limitation of this property is annoying.
Most common case is the 'class' when I have to merge default options with the once use has provided. Something like:
$default = array( "class"=>array("default"));//merged with $specific = array("class"=>array("spec"));//and end up to
...class="default spec"... Could be real nice and handy.
Considering HTML5 data used more and more,it would be nice if I could do something like:
$htmlOptions = array("data"=>array("id"=>1, "name"=>"tydeas"));and as a result ...data-id=1 data-name="tydeas" in my element.
This post has been edited by tydeas_dr: 26 October 2011 - 07:05 AM