Closed Bug 1596936 Opened 5 years ago Closed 5 years ago

Can't select text from disabled form fields

Categories

(Core :: DOM: Selection, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 195361
Webcompat Priority ?
Tracking Status
firefox72 --- affected

People

(Reporter: eanbowman, Unassigned)

References

Details

+1 this is STILL an issue in 2019. Can we please merge the fix in the parent?

+++ This bug was initially created as a clone of Bug #195361 +++

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210

If you setup an input field to be disabled, then composer can not select that
input field. Not by:

  • Ctrl+A
  • Mouse click
  • Mouse double click
  • Mouse drag (selecting others elements)

Reproducible: Always

Steps to Reproduce:

  1. Create an input field with <... disabled="disabled" ...>
  2. Try to select the input for deleting of editing
  3. you can't

Actual Results:
You can not delete or edit the input field

Expected Results:
You should be able to select the input field and the input field should be
painted blue

Please try the testcase, more instructions and examples are inside the testcase #1

The spec contains:

"Any other behavior related to user interaction with disabled controls, such as whether text can be selected or copied, is not defined in this standard."

So at least the standard isn't violated. However, it seems desirable to have same behavior across browsers and Chrome's behavior is the one expected by the reporter.

As the issue is present at a web-page (https://www.w3schools.com/code/tryit.asp?filename=G5JI2AUOZP2U), I'll add the webcompat flag.

Webcompat Priority: --- → ?
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.