Bugzilla – Bug 998
input element accept attribute is marked invalid incorrectly
Last modified: 2015-06-28 14:05:07 CEST
The validator incorrectly marks accept=".gif,image/gif" (Or similar patterns) as invalid. It only allows full mime-types. The is contrary to the published HTML standard (http://www.whatwg.org/specs/web-apps/current-work/#attr-input-accept). Even the example given "<input type="file" accept=".doc,.docx,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document">" fails validation
*** Bug 1008 has been marked as a duplicate of this bug. ***
See https://github.com/validator/validator/commit/3ea40b2f79c025bd5b7444f1c6c3dee4853269f6 Fix pushed to https://validator.w3.org/nu/