Closed Bug 1412849 Opened 8 years ago Closed 8 years ago

Poor example (52 instead of 53 weeks in year) in MDN topic on <input type="week">

Categories

(Developer Documentation Graveyard :: MDN Meta Docs, defect, P5)

All
Other
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Morris-moz, Unassigned)

References

()

Details

:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details In the article on <input type="week"> at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/week all the examples relate to years with 52 weeks in them. Considering 71 out of every 400 years contain 53 weeks (https://en.wikipedia.org/wiki/ISO_week_date) this could lead to developers creating sites that do not allow all the possible weeks to be entered. The next year with 53 weeks will be 2020 so a bug such as this in an input form may not become apparent until a few years later.
Summary: Poor example in MDN topic on <input type="week"> → Poor example (52 instead of 53 weeks in year) in MDN topic on <input type="week">
Chris should probably look at this since he wrote this material.
Flags: needinfo?(cmills)
The examples in that article aren't wrong as such, but it certainly is worth mentioning this important consideration. I have added a note into the article to warn developers about this. Ideally I'd go through and update all my examples to take this into account, but I don't have time right now.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(cmills)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.