Last modified: 2013-02-28 20:29:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43330, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41330 - Make the "year" field default to the current year on histories
Make the "year" field default to the current year on histories
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
1.21.x
All All
: Low minor (vote)
: ---
Assigned To: Alex Monk
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-23 21:32 UTC by Helder
Modified: 2013-02-28 20:29 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
screenshot of the field (55.89 KB, image/png)
2012-12-16 21:01 UTC, Helder
Details

Description Helder 2012-10-23 21:32:00 UTC
I don't see much use in providing an empty "year" field, because if the user clicks on any of the arrows it will go to something as useful as year "-1" or "1".
E.g.: http://www.mediawiki.org/wiki/MediaWiki?action=history
Comment 1 Platonides 2012-12-16 19:29:06 UTC
What are you talking about? :S
Comment 2 Helder 2012-12-16 21:01:51 UTC
Created attachment 11523 [details]
screenshot of the field
Comment 3 Platonides 2012-12-16 21:38:29 UTC
Wow, I have section-blindness. :)

Those arrows were added by your browser due to usage of type="number". 
When presented as type="text", it makes more sense. I'm not sure if type="number" should be used as a year or not. 

http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#number-state-%28type=number%29 says
"A simple way of determining whether to use type=number is to consider whether it would make sense for the input control to have a spinbox interface"
and for it makes sense. But going up to 1 from "empty" for a year representation does not. May even be a browser bug.

So it makes sense to use the current year as you claimed.

What does your browser when presented with: <input type="number" min="2001" max="2012" value="" /> ?
Comment 4 Helder 2012-12-16 22:50:21 UTC
(In reply to comment #3)
> What does your browser when presented with: <input type="number" min="2001"
> max="2012" value="" /> ?

In your example, when I load the page the field is empty. After I use any of the buttons it shows the number 2001.

For the record, I was using Google Chrome 22.0.1229.94. On Firefox 17.0.1 there is no button to increase/decrease the value.
Comment 5 Alex Monk 2012-12-17 01:00:46 UTC
Gerrit change #39017
Comment 6 Alex Monk 2013-01-28 18:29:21 UTC
Merged by Demon.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links