html – Behavior of the label element in Firefox

Question:

In all browsers, if you type something in an input and then click on the associated label, the caret is positioned after the last typed character, and only in Firefox the entire content of the input is selected. How to align behavior, preferably without using javascript?

<label>Click me <input type="text" /></label>

https://jsfiddle.net/yn2u73j1/

Answer:

https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-user-focus

label{
  -moz-user-focus: ignore;
}
<label>Click me <input type="text" /></label>
Scroll to Top