Windows 8 Store applications have the benefit of only running in IE10 based technology. This means that applications only have to be tested in Windows 8, but it also means that developers can use IE10 quirks to their advantage.
My favorite “quirk” in IE10 is the ability to reference HTML elements by their id attribute as if the id was a global variable. So instead of referencing DOM elements by calling document.getElementById(‘contactdetail’), you can reference them directly by just using the id. This is shown in Listing 1.
//Old browser safe way to refernce DOM element
var editContactCommand = document.getElementById('editContact');
editContactCommand.disabled = true;
//New way taking advantage of IE10 id quirk
editContact.disabled = true;