[whatwg] [Notifications] Constructor should not have side effects

Elliott Sprehn esprehn at gmail.com
Tue Jan 29 12:17:43 PST 2013


On Tue, Jan 29, 2013 at 3:02 PM, Ryosuke Niwa <rniwa at apple.com> wrote:

> ...
> Is that even a valid use case? It seems dubious to instantiate a class
> named "request" and then not send a request.
>
>
You can't go down that line of thinking because it doesn't generalize. For
instance why would I instantiate a class named "node" without putting it
into the tree? If we followed that logic then new HTMLDivElement should
append itself into the document by default.

- E



More information about the whatwg mailing list