[Bug 23532] Dealing with undefined

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23532

--- Comment #16 from Glenn Maynard <glenn@zewt.org> ---
(In reply to Domenic Denicola from comment #15)
> >  since I suspect web developers would prefer a clear indication that a call like document.body.setAttribute() (with no arguments) is incorrect instead of it silently doing something bogus...
> 
> I don't think this is true, given the wide acceptance and prevalence of web
> developer-created libraries that do not do argument validation of this sort.
> (For example, jQuery.) Argument validation exceptions are not idiomatic to
> or expected by JavaScript code, generally.

Of course we want to be told when we're doing something that is blatantly
incorrect.  Libraries don't do it because it's cumbersome to do in JavaScript,
but that's a bug, not a feature.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Wednesday, 23 October 2013 15:19:25 UTC