There seems to be an issue with JavaScript's defineProperty and __defineSetter not working on elements in iOS6. It functions correctly on all other browsers and earlier versions of iOS. Does anyone have more information on this?
<input id='Button1' type="button" value="test" onclick="test()">
<script>
Object.defineProperty(Button1,'width',{set: function(x){
Button1.style.width=x},
enumerable: true,
configurable: true});
function test(){
Button1.width="100px";
alert(Button1.style.width);
}
</script>
Check out the code in this fiddle: