LibWeb: Clamp cursor position in click handling
Should fix #529
seems like it's still not fully solved, no crashes but it sometimes won't let me type anything
which isn't a new issue, as I mentioned in #529
when that happens, the cursor position node is an element inside a document fragment, whereas the working case has it as a text node
looks like it's triggered by dragging when selecting the input field
There has been quite a few changes in this area, namely: #2024 which deletes EventHandler.cpp
I can no longer reproduce the crash in #529.
The issue is still present, though yes this PR no longer really applies