在Firefox中输入接受属性 [英] Input accept attribute in Firefox

查看:118
本文介绍了在Firefox中输入接受属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 MDN accept = [MIME类型] 。然而,我试过以下无效:

According to MDN accept=[MIME type] is supported in Firefox. However, I tried the following to no avail:

<input type="file" accept="text/html">




它不会过滤 HTML 文件: 演示

这是一个已知的Firefox错误:
这是一个已知的Firefox错误:


It doesn't filter the HTML files: demo.
Is it a bug or am I missing something?

推荐答案

https://bugzilla.mozilla.org/show_bug.cgi? id = 826185

幸运的是,这个问题似乎有一个补丁,应该尽快审查。

Fortunately, it appears there is a patch for the issue that should be reviewed soon.

这篇关于在Firefox中输入接受属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆