-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Element Send Keys for "<input type=file>" has to also send a change event. #1262
Conversation
index.html
Outdated
@@ -6145,7 +6145,8 @@ <h3><dfn>Element Send Keys</dfn></h3> | |||
If <var>multiple</var> is <code>true</code> | |||
<var>files</var> are be appended to <var>element</var>’s <a>selected files</a>. | |||
|
|||
<li><p><a>Fire</a> an <a><code>input</code></a> event. | |||
<li><p><a>Fire</a> an <a><code>input</code></a> and | |||
<a><code>change</code></a> event. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be OK, but I think it would be better to call out the ordering explicitly:
- Fire an input event on element.
- Fire a change event on element.
Or:
- Fire these events in order on element:
1.1. input
1.2. change
We should also change this to be specific about where to fire the element (note the use of element above).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made those changes.
I will take care of adding the test via https://bugzilla.mozilla.org/show_bug.cgi?id=1448792 |
@andreastt shouldn't we label that PR for |
… event for <input type=file>. r=ato Adds a wdspec test to ensure the latest WebDriver specification changes for w3c/webdriver#1262. MozReview-Commit-ID: CQqq8VjBobU --HG-- extra : rebase_source : 6a0c2ed0e5a8dec746c85d67a71280de8011e9a6
… event for <input type=file>. r=ato Adds a wdspec test to ensure the latest WebDriver specification changes for w3c/webdriver#1262. MozReview-Commit-ID: CQqq8VjBobU
…put type=file>. Adds a wdspec test to ensure the latest WebDriver specification changes for w3c/webdriver#1262. bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1448792 gecko-commit: c26eb7edb08f6c7540a6f39d3dde16631a7a28a4 gecko-integration-branch: central gecko-reviewers: ato
…put type=file>. Adds a wdspec test to ensure the latest WebDriver specification changes for w3c/webdriver#1262. bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1448792 gecko-commit: c26eb7edb08f6c7540a6f39d3dde16631a7a28a4 gecko-integration-branch: central gecko-reviewers: ato
… event for <input type=file>. r=ato Adds a wdspec test to ensure the latest WebDriver specification changes for w3c/webdriver#1262. MozReview-Commit-ID: CQqq8VjBobU UltraBlame original commit: c26eb7edb08f6c7540a6f39d3dde16631a7a28a4
… event for <input type=file>. r=ato Adds a wdspec test to ensure the latest WebDriver specification changes for w3c/webdriver#1262. MozReview-Commit-ID: CQqq8VjBobU UltraBlame original commit: c26eb7edb08f6c7540a6f39d3dde16631a7a28a4
… event for <input type=file>. r=ato Adds a wdspec test to ensure the latest WebDriver specification changes for w3c/webdriver#1262. MozReview-Commit-ID: CQqq8VjBobU UltraBlame original commit: c26eb7edb08f6c7540a6f39d3dde16631a7a28a4
As given by the HTML spec the
<input type=file>
element sends both theinput
andchange
event. The spec currently only requires to fire theinput
event.https://html.spec.whatwg.org/#file-upload-state-(type=file):event-input-3
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
Testcase: https://output.jsbin.com/vijukozuro/1