Possible duplicate:
Is there a limit on the length of HTML attributes?
I want to use data attributes to pass JSON between scripts on a web page. For example, a div tag might look like this:
<div data-choices='{"name1":"Jack","name2":"Jeff"," name3":"Zoe"}' />
This is similar to what the dojo toolkit does with options, but in my case the JSON string can be much longer.
Are there any restrictions on the size of data attributes (W3C recommendation, browser restrictions, etc.)?
source
share