Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

_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?


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