My input HTML field is disabled, but I've noticed that in some browsers (such as Chrome, Edge, Internet Explorer, and Opera), it's still possible to select and copy the text. However, in Firefox, this functionality does not work.
To test this yourself, try running the following code in different browsers:
<input type="text" disabled value="is disabled">
<input type="text" readonly value="is read-only">
I came across information stating that disabled fields can be focused, disabled inputs are unusable and un-clickable, and read-only inputs cannot be modified but offer text copying abilities.
I have not found any information specifying that text from disabled inputs cannot be copied. Is there a standard behavior that some browsers are not adhering to, or do browsers have the option to allow copying of text from disabled inputs?
Is there a solution that would enable text from disabled input fields to be copied across all browsers?
Note: My application is developed using Angular and TypeScript languages.
It appears that Firefox behaves differently from other browsers. I have raised an issue on Bugzilla to determine if this is a deliberate design choice or a bug. I am currently awaiting a response.