implement resolve per dom future spec