Let's say i defined my own attribute, called "counter".
Code HTML4Strict:
<div id="myid" counter="2">test</div>

I know I can read this value trough:
document.getElementById('myid').getAttribute('counter');

But is it possible to add the counter attribute to javascripts known attributes, so I could access it like:
document.getElementById('myid').counter;

?