After renaming my function the code stopped working. That new name `scrollIntoView` seems to be clashing with the [`element.scrollIntoView()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) method.

```
<div onmousedown="scrollIntoView('id001')"/>

function scrollIntoView(id) {
    alert(id);
}

```

I've created a simple test case <https://jsfiddle.net/mgtn215y/> which has shown my function is simply ignored in favor of `element.scrollIntoView()` even

* it is not called on element
* attributes do not match

The solution is obvious - to use a different function name. As this behavior is consistent across major browsers, I expect this is specified somewhere. However, I couldn't find anything related in e.g. [JavaScript lexical grammar](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar). Is there any background for this behavior?