NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 998 - input element accept attribute is marked invalid incorrectly
input element accept attribute is marked invalid incorrectly
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: HTML5 schema
HEAD
All All
: P2 normal
Assigned To: Nobody
: 1008 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-07 14:16 CEST by Walther Lalk
Modified: 2015-06-28 14:05 CEST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walther Lalk 2014-07-07 14:16:23 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
Comment 1 Andy R 2014-11-05 13:44:54 CET
*** Bug 1008 has been marked as a duplicate of this bug. ***