https://bugzilla.wikimedia.org/show_bug.cgi?id=70973

--- Comment #3 from Matthew Flaschen <[email protected]> ---
maxlength may not be a good choice, since maxlength does not work for input
type="number", so it's misleading to expose that to the output for input type
number.  See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input#attr-maxlength
and https://html.spec.whatwg.org/multipage/forms.html#concept-input-apply .

The class approach (mw-ui-input-medium) seems reasonable.  If we want to
auto-add that, we could use min and max, since we have that in some places
(e.g. preferences) even though it is not currently generated to the output (see
bug 71026) for browser compatibility reasons.

However, if that fails (e.g. is too coarse), we might have to specify them (in
per-page CSS) directly.

I.E.

.mw-some-field {
  width: 200px;
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to