This anti-pattern in API design is annoying enough in HTML5. Awesome to see it's now leaking into the OS world.