当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

Firefox Quantum will not allow me to copy the text from a disabled text field

  • 4 件の返信
  • 31 人がこの問題に困っています
  • 20 回表示
  • 最後の返信者: RexLT

more options

Previously I have been able to highlight & select text in a disabled text field & copy the content. The new Quantum browser will not let me select the text.

All other browsers allow this functionality.

On disabled fields all I get is the Unavailable cursor.

Previously I have been able to highlight & select text in a disabled text field & copy the content. The new Quantum browser will not let me select the text. All other browsers allow this functionality. On disabled fields all I get is the Unavailable cursor.

選ばれた解決策

This is not a new issue -- there's a bug on file from 2003:

https://bugzilla.mozilla.org/show_bug.cgi?id=195361

Apparently there was originally a statement in the HTML5 standard that said:

Note: The difference between disabled and readonly is that read-only controls are still focusable, so the user can still select the text and interact with it, whereas disabled controls are entirely non-interactive.

From: W3C Recommendation 28 October 2014, https://www.w3.org/TR/html5/forms.html#the-readonly-attribute

At some point last year that changed:

The difference between disabled and readonly is that read-only controls can still function, whereas disabled controls generally do not function as controls until they are enabled. This is spelled out in more detail elsewhere in this specification with normative requirements that refer to the disabled concept (for example, the element's activation behavior, whether or not it is a focusable area, or when constructing the form data set). Any other behavior related to user interaction with disabled controls, such as whether text can be selected or copied, is not defined in this specification.

From Living Standard, https://html.spec.whatwg.org/multipage/input.html#the-readonly-attribute

So that would support a change, but don't hold your breath.

But if you were able to do that before, perhaps it was enabled by an add-on?

この回答をすべて読む 👍 0

すべての返信 (4)

more options

You can try to use the builtin Inspector to remove attributes that prevent selection or copy the text directly from the inspector pane.

more options

Thanks cor-el but that did not work as I cannot make changes to the website.

The point is that the new browser does not do what the previous version or other browsers allow which is to highlight & copy the disabled text field content.

This is a specific change in behaviour of the new browser not the website that I am accessing.

I have added an example field where I can highlight the content in chrome (& other browsers) & the text field html from the inspector.

Hope that helps.

more options

選ばれた解決策

This is not a new issue -- there's a bug on file from 2003:

https://bugzilla.mozilla.org/show_bug.cgi?id=195361

Apparently there was originally a statement in the HTML5 standard that said:

Note: The difference between disabled and readonly is that read-only controls are still focusable, so the user can still select the text and interact with it, whereas disabled controls are entirely non-interactive.

From: W3C Recommendation 28 October 2014, https://www.w3.org/TR/html5/forms.html#the-readonly-attribute

At some point last year that changed:

The difference between disabled and readonly is that read-only controls can still function, whereas disabled controls generally do not function as controls until they are enabled. This is spelled out in more detail elsewhere in this specification with normative requirements that refer to the disabled concept (for example, the element's activation behavior, whether or not it is a focusable area, or when constructing the form data set). Any other behavior related to user interaction with disabled controls, such as whether text can be selected or copied, is not defined in this specification.

From Living Standard, https://html.spec.whatwg.org/multipage/input.html#the-readonly-attribute

So that would support a change, but don't hold your breath.

But if you were able to do that before, perhaps it was enabled by an add-on?

この投稿は jscher2000 - Support Volunteer により に変更されました

more options

Thanks jscher2000. Appreciate that.

I don't recall have any add-ons.

Anyway this is for work so I will just go back to using chrome :(

Cheers