Page MenuHomePhabricator

Refine input type of the ProveIt interface based on template data
Closed, DeclinedPublic

Description

For example, if a parameter is of type "url" or "number", the input should be too.

Event Timeline

This is actually not desirable, because while the browser enforces that users can only write numbers on "number" inputs, and only URLs in "url" inputs, MediaWiki doesn't, and sometimes templates may be suggesting a type but not wanting to enforce it. For example, an "year" field may be of type "number" but allow values such as "400 b. C." which the browser would never allow.

Going through the entire list of input types (https://www.w3schools.com/html/html_form_input_types.asp) there doesn't seem to be a single one that would be desirable to enforce. Thus I'm closing this task until someone disagrees.