User agents must also provide an event handler IDL attribute [HTML5] named ondeviceorientation on the window object: