bug 825341 - convert range to webidl r=bz, smaug