html – Behavior of the label element in Firefox


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>


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