On 12/18/12 12:09 PM, Anne van Kesteren wrote:
FWIW, in the dictionary you do not need to define a default value, at
least not as far as events are concerned.

That's true, but it might save on the amount of prose needed to define the behavior. That said,

For events you need to define a default value in prose (because of 
document.createEvent()).

Yeah, that really makes it so there's no benefit to having a default value in the dictionary in this case.

It needs to be neither nullable nor have a default value. For the
interface my suggestion was indeed to use the empty string for the
reason you state.

Makes sense.

-Boris


Reply via email to