jquery/jquery — pull request #658 by wolever (2012-01-19 18:42:08+00:00)
Title: Convert JSON strings in data-* attributes.

This patch should guarantee that any valid JSON data in `data-*` attributes will be correctly converted when read with the `.data(...)` method.

This change will make it safe to use `data-` attributes with arbitrary data, so long as it is first JSON encoded.

Backwards compatibility will only be broken in situations where a `data-*` attribute matches `/^".*$/`.

See also: http://bugs.jquery.com/ticket/7579