Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
IE 5.0 brings a javascript error without putting the property into ''. i think, it has right, because according to the json specification a object may have only keys as properties - drupal_to_js doesn't handle this correctly.
patch attached.
Comment | File | Size | Author |
---|---|---|---|
drupal_to_js_object_keys.patch | 604 bytes | fago | |
Comments
Comment #1
fagoops, i've forgotten to mention that i'm talking about objects.
so the property of a JSON object has to be a string, otherwise IE5 fails.
Comment #2
Steven CreditAttribution: Steven commentedGood catch, committed to HEAD.
Comment #3
(not verified) CreditAttribution: commented