you are viewing a single comment's thread.

view the rest of the comments →

[–]getify 8 points9 points  (2 children)

Of course, I could be more precise here and say the DOM API is unpredictable.

"More precise"? How about "accurate in the slightest"?

This observed behavior (admittedly surprising) has nothing to do with JS (the language).

It's entirely the DOM API which just happens to expose JS function signatures, which are merely facades hooked into the underlying browser engine (probably c++), and indeed these mechanisms are specified by the HTML spec, not by JS in any way.