Cosmetic question: I have a html element containing possible dimensions for some embedded images, these are stored as:
The JSON specification stipulates that keys and (string) values be quoted with double-quotes.
HTML attributes can be enclosed in either single or double quotes.
Personally, I wouldn't fight it and just go with what causes the least amount of friction and is easiest for all to understand which in this case is to single quote the HTML attributes and use double-quotes inside the attribute value.