I got a really bothering problem which I can not understand.
I have a
<p id="id_1">The first paragraph.</p>
<p id="id_2">The second one.</p>
<button onclick="remove(document.getElementById('id_1'));">click me!</button>
The function name "remove" is being hidden by the native "remove" method on the button element itself. If you change the name, it works as expected.