I can't seem to find a simple way to do this.

$('.section').removeAllAttr() would be nice.

$('.section').removeAttr() doesn't work where I thought it might.

So,
Code:
<div class="section hello" data-test="123" id="an-id" data-something="abc">
content
</div>
...results in...
Code:
<div>
content
</div>
It needs to work for any tag as well.

Surely this should be easy but I just can't do it.

If it's easier (or quicker for jQuery) then removing all the data- attributes is fine, as I could then do this:
Code:
$('.section').removeAllDataAttributes().removeClass();
...which would be fine for what I need.