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