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
Form action url 11219 #13358
Merged
+52
−2
Merged
Form action url 11219 #13358
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.
Loading status checks…
adding macro to return string or url,
using that macro with the form action, making the form submit process use base url, adding tests.
- Loading branch information
commit ce249d9384a613a463781c673b8243658be69891
| "deleted_reftests": {}, | ||
| "items": { | ||
| "testharness": { | ||
| "html/semantics/forms/the-form-element/form-action-url.html": [ | ||
| { | ||
| "path": "html/semantics/forms/the-form-element/form-action-url.html", | ||
| "url": "/html/semantics/forms/the-form-element/form-action-url.html" | ||
| } | ||
| ], | ||
| "html/semantics/forms/the-select-element/common-HTMLOptionsCollection-add.html": [ | ||
| { | ||
| "path": "html/semantics/forms/the-select-element/common-HTMLOptionsCollection-add.html", |
| @@ -0,0 +1,9 @@ | ||
| <!doctype html> | ||
|
||
| <script src="/resources/testharness.js"></script> | ||
| <script src="/resources/testharnessreport.js"></script> | ||
| <script> | ||
| var t = async_test("Submit a form from an iframe with a base url"); | ||
| var success = function() { t.done(); }; | ||
| </script> | ||
|
|
||
| <iframe src="resources/form-action-url-iframe.html"> | ||
| @@ -0,0 +1,11 @@ | ||
| <!doctype html> | ||
| <base href="target/"></base> | ||
|
|
||
| <form action="form-action-url-target.html"> | ||
| <input type="submit" value="Submit" /> | ||
| </form> | ||
|
|
||
| <script> | ||
| var form = document.getElementsByTagName("form")[0]; | ||
| form.submit(); | ||
| </script> |
| @@ -0,0 +1,4 @@ | ||
| <!doctype html> | ||
| <script> | ||
| window.parent.success(); | ||
| </script> |
ProTip!
Use n and p to navigate between commits in a pull request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
This test should be added to the manifest. You can use this command to do so: