ZF-3406: HeadStyle view helper: allow multiple media descriptors
Description
There is a check on the given media attribute to see if it is valid. (file HeadStyle.php, on line 317 - 321) The check only verifies single values. It should need to support multiple values.
eg. //Works $this->headStyle()->captureStart("APPEND", array("media" => "screen")); //Result
//Doesn't work $this->headStyle()->captureStart("APPEND", array("media" => "screen, projection")); $this->headStyle()->captureStart("APPEND", array("media" => array("screen", "projection")));
//Expected result
Reference media descriptors - http://w3.org/TR/REC-html40/… - http://w3.org/TR/REC-html40/… media = media-descriptors. This attribute specifies the intended destination medium for style information. It may be a single media descriptor or a comma-separated list. The default value for this attribute is "screen".
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-12-10T17:15:01.000+0000
Assigning to Jon Whitcraft.
Posted by Jon Whitcraft (sidhighwind) on 2008-12-11T18:52:23.000+0000
This was fixed with r13182