mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
adding macro to return string or url,
using that macro with the form action, making the form submit process use base url, adding tests.
This commit is contained in:
parent
1ed3521dcf
commit
ce249d9384
6 changed files with 52 additions and 2 deletions
|
@ -37715,6 +37715,12 @@
|
|||
"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>
|
Loading…
Add table
Add a link
Reference in a new issue