diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-06-20 12:06:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-20 12:06:52 -0500 |
commit | 33bda9c207001b1f4f0676cbab3222218e94e987 (patch) | |
tree | 55a8cf52444a2850c9532f3f1c263b0bd2217846 /components/layout/layout_thread.rs | |
parent | c270622bfdd7a409c1a940322f630fd6cbd985c0 (diff) | |
parent | 74eb80dbd8a9d83a3339399cd036087702eb80ea (diff) | |
download | servo-33bda9c207001b1f4f0676cbab3222218e94e987.tar.gz servo-33bda9c207001b1f4f0676cbab3222218e94e987.zip |
Auto merge of #11757 - izgzhen:file-acccept-mime-filter, r=Manishearth
Implement filter for file-type input's accept attribute
Now the two sides are pasted together with the new version of `mime_guess` landed.
I tested this thing locally with stuff like this:
```html
<input id="input_file" type="file" accept=".doc,.docx,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"></input>
<a onclick="open_file();">Click</a>
<script type="text/javascript">
function open_file() {
console.log("Open file");
document.getElementById("input_file").click();
}
</script>
```
Will WPT be able to handle this automatically?
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes is related to #11131
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11757)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/layout_thread.rs')
0 files changed, 0 insertions, 0 deletions