title: Can a DOM element attribute value be a JavaScript object?
body: <p>Maybe this is a duplicate, but I could find the similar question. </p>
  
  <p>For example we have <code>&lt;input data-student=""&gt;</code> and we have a <code>var studentObj = {...}</code>. Can I assign <code>studentObj</code> to input <code>data-student</code> attribute? Will it contradict the standards?</p>