Open simonkrauter opened 2 months ago
I believe the code responsible for this behavior is here:
Replacing this with if (true)
makes selection on readonly inputs work.
To be honest, I'm not sure what the exact intention of this line is or what the behavior is supposed to be.
@tcl3 I've already started to work on this place. The read-only case is simple, just allow selection in any case (like what you wrote with if (true)
.
Note: Buttons and placeholders should continue to not allow selection, which needs some extra code.
Then in future we could forbid the selection according to the CSS property user-select
(which I don't like).
Re-opening as we reverted the fix in #1195. It broke web features (e.g. typing into the search field on google.com, and comment boxes on github.com).
Ladybird currently does not support to select (and copy) text in the elements
<input readonly>
and<textarea readonly>
.In Chrome/Firefox this is possible.
Test page: