_array_to_attr() in Asset library

edited May 2015 in Bug Reports
As of the current release, If the attrs key is used with js() for example, attributes are added with no gap at the end eg:
js('script', NULL, array('output' => 'whitespace', 'attrs' => array('async' => 'async')));
results in:
<script src="/assets/cache/78a101984cd52fa257773022a1f3f265_.js" async="async"type="text/javascript" charset="utf-8"></script>

Note no whitespace between "async" & type=

I think Asset.php line 1523 just needs a trailing space added?

Comments

  • edited 3:51PM
    Thanks for the report. Will make that fix.
Sign In or Register to comment.