Cosmetic question: I have a html element containing possible dimensions for some embedded images, these are stored as:
<div class="inside" data-dimensions='{ "s-x": 213, "s-y": 160, "m-x": ...
I get out the data-dimension and parse with jQuery.parseJSON(jQuery.data("dimensions")) all fine and closely following the jquery's doc.
However I'm used to encapsulate all my html attributes inside double quotes:
<div class="inside" data-dimensions="{ 's-x': 213, 's-y': 160, 'm-x': ...
But then I get a malformed json exception. Are there ways so i can obey my self imposed "double quoted html attributes" law?