I'm trying to insert some html via jquery (1.6.1) using the following line:

`$('#myElem').html(htmlString);`

This `htmlString` variable contains some HTML with attributes contained, for example:

`<div myCustomAttribute="1">...</div>`

When the XML is inserted, examining the elements on the page, I see the following:

`<div mycustomattribute="1">...</div>`

Is there a reason for this? How can I avoid this from happening?

[Click here to see an example of this in fiddle](https://jsfiddle.net/gLnyc6hm/27/)

Edit: Unfortunately I can't really change it to use the `data` attributes (as it should be) because I am working on an existing system that has a huge amount of javascript that is checking for this particular attribute name. For various reasons, renaming the attribute would also cause existing data to break.