title: Setting attribute value of an element in camelCase using a directive
body: <p>I'm trying to add an attribute to an angularJs element from a directive like this:</p>
  
  <pre><code>element.attr('startOffset', val);
  </code></pre>
  
  <p>But when I check the element, the attribute added is 'startoffset' where the 'o' is not a capital letter.</p>
  
  <p>Is there any way to add an attribute to an element and keep the case of the word intact?</p>
  
  <p>Thanks</p>