Make ajax call transform to a document fragment using xsl the output html has an attribute data-foo="{\"sometag\":\"somedata\"}" element.html(xmlserialized fragment) will create the new dom elements and insert them properly. The quotes are properly escaped and window.JSON.parse on the string returns a json object.
However: $(element).data('foo') returns the string, not a json object.
It appears that when .html() loads the new element it perhaps does not make a call to detect data- attributes and update the data object?
Devs need to check this. How would I let them know?