I have code like
<div id="loadCommentBestComment" style="cursor:pointer" onclick="createComment('af0532_$dvkpo6420')">load the most useful comment.</div>
The problem was that I was clicking on it and nothing was executing, the function createComment() wasn't even being called.
hours tried to figure out what was going on but nothing. Then tried to change the name of createComment to another name like createCommentAlias() and everything worked fine.
this is not the first time this happens, I have gotten weird behaviours of this kind previously as well. and again due to variable names which seemingly were overriden by other native variables.
Another example, the name nextSibling is a method of a Dom element, and thus can normally be used as var nextSibling, but in inline js it gets, again, overriden by something else. And again this happens only if the js is inline.
So I'd like to know what are these variable, where do they come from, and possibly have a list of them so that I don't use those names again.