- πΊπΈUnited States smustgrave
Know drupal_get_js is no more. And filter system has been updated in the last 12 years so wonder if still needed?
- Status changed to Closed: outdated
4 months ago 2:27am 2 May 2025
Hi,
Right now, both functions "drupal_add_js" and "drupal_get_js" doesn't handle the "charset" attribute for script HTML tags.
This is a very big problem for those who want to load on the same page scripts in different charsets.
This issue could probably be handled very quickly, I'm sure it's not complicated.
I think the only thing to do is to add support for this attribute in the "drupal_get_js" function.
after this change, it will be possible to call "drupal_add_js" with an option "charset" => "utf-8" for example.
When this option is added, the HTML tag generated will have the 'charset="utf-8"' attribute.
Thanks,
Nicolas
Postponed: needs info
9.5
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Know drupal_get_js is no more. And filter system has been updated in the last 12 years so wonder if still needed?