Skip to content
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

Implement extremely basic form submission #3642

Merged
merged 6 commits into from Oct 11, 2014
Merged

Conversation

@Manishearth
Copy link
Member

Manishearth commented Oct 10, 2014

This is missing a lot of parts, so it doesn't really make any real-world form submission work yet. It provides a skeleton on which the missing bits can be filled in.

What works:

  • <input> elements except for type=file
  • GET/POST methods
  • URLencoded enctypes (default)
  • Submission via <form>.submit() only

Stuff that needs to be done for most simple real-world cases to work:

  • Working text input
  • Click handlers for <submit>
  • Possibly <textarea> support
  • Support for the other two enctypes (#3649)

Todo:

  • Correctly implement planned navigation using TrustedFormAddress (#3648)
  • Correctly implement form owners. Requires html5ever and some discussion of the spec.
  • <input type=file> support
  • Image submit support
  • Browsing contexts/targets
  • Support for non-<input> controls
  • Validation (?)
  • Dirname (?)
@hoppipolla-critic-bot
Copy link

hoppipolla-critic-bot commented Oct 10, 2014

Critic review: https://critic.hoppipolla.co.uk/r/2840

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@Manishearth
Copy link
Member Author

Manishearth commented Oct 10, 2014

I haven't yet updated the wpt expectations since wpt is acting a bit wonky -- I'll do it in a while.

@Manishearth Manishearth force-pushed the Manishearth:form-submit branch 2 times, most recently from 08098f4 to aea5666 Oct 11, 2014
bors-servo pushed a commit that referenced this pull request Oct 11, 2014
This is missing a lot of parts, so it doesn't really make any real-world form submission work yet. It provides a skeleton on which the missing bits can be filled in.

What works:
 - `<input>` elements except for `type=file`
 - GET/POST methods
 - URLencoded `enctype`s (default)
 - Submission via `<form>.submit()` only

Stuff that needs to be done for most simple real-world cases to work: 
 - [Working text input](#3585)
 - Click handlers for `<submit>`
 - Possibly `<textarea>` support

Todo:
 - Correctly implement [planned navigation](https://html.spec.whatwg.org/multipage/forms.html#planned-navigation) using `TrustedFormAddress` 
 - [Correctly implement form owners.](#3553) Requires html5ever and some discussion of the spec.
 - `<input type=file>` support
 - Image submit support
 - Browsing contexts/targets
 - Support for non-`<input>` controls
 - Validation (?)
 - Dirname (?)
@Manishearth Manishearth force-pushed the Manishearth:form-submit branch from aea5666 to 850572f Oct 11, 2014
bors-servo pushed a commit that referenced this pull request Oct 11, 2014
This is missing a lot of parts, so it doesn't really make any real-world form submission work yet. It provides a skeleton on which the missing bits can be filled in.

What works:
 - `<input>` elements except for `type=file`
 - GET/POST methods
 - URLencoded `enctype`s (default)
 - Submission via `<form>.submit()` only

Stuff that needs to be done for most simple real-world cases to work: 
 - [Working text input](#3585)
 - Click handlers for `<submit>`
 - Possibly `<textarea>` support

Todo:
 - Correctly implement [planned navigation](https://html.spec.whatwg.org/multipage/forms.html#planned-navigation) using `TrustedFormAddress` 
 - [Correctly implement form owners.](#3553) Requires html5ever and some discussion of the spec.
 - `<input type=file>` support
 - Image submit support
 - Browsing contexts/targets
 - Support for non-`<input>` controls
 - Validation (?)
 - Dirname (?)
@jdm
Copy link
Member

jdm commented Oct 11, 2014

Ugh, one layout race and one mysterious timeout.

bors-servo pushed a commit that referenced this pull request Oct 11, 2014
This is missing a lot of parts, so it doesn't really make any real-world form submission work yet. It provides a skeleton on which the missing bits can be filled in.

What works:
 - `<input>` elements except for `type=file`
 - GET/POST methods
 - URLencoded `enctype`s (default)
 - Submission via `<form>.submit()` only

Stuff that needs to be done for most simple real-world cases to work: 
 - [Working text input](#3585)
 - Click handlers for `<submit>`
 - Possibly `<textarea>` support

Todo:
 - Correctly implement [planned navigation](https://html.spec.whatwg.org/multipage/forms.html#planned-navigation) using `TrustedFormAddress` 
 - [Correctly implement form owners.](#3553) Requires html5ever and some discussion of the spec.
 - `<input type=file>` support
 - Image submit support
 - Browsing contexts/targets
 - Support for non-`<input>` controls
 - Validation (?)
 - Dirname (?)
@Manishearth
Copy link
Member Author

Manishearth commented Oct 11, 2014

(Couldn't repro the timeout locally)

bors-servo pushed a commit that referenced this pull request Oct 11, 2014
This is missing a lot of parts, so it doesn't really make any real-world form submission work yet. It provides a skeleton on which the missing bits can be filled in.

What works:
 - `<input>` elements except for `type=file`
 - GET/POST methods
 - URLencoded `enctype`s (default)
 - Submission via `<form>.submit()` only

Stuff that needs to be done for most simple real-world cases to work: 
 - [Working text input](#3585)
 - Click handlers for `<submit>`
 - Possibly `<textarea>` support
 - Support for the other two enctypes (#3649)

Todo:
 - Correctly implement [planned navigation](https://html.spec.whatwg.org/multipage/forms.html#planned-navigation) using `TrustedFormAddress`  (#3648)
 - [Correctly implement form owners.](#3553) Requires html5ever and some discussion of the spec.
 - `<input type=file>` support
 - Image submit support
 - Browsing contexts/targets
 - Support for non-`<input>` controls
 - Validation (?)
 - Dirname (?)
@Manishearth Manishearth force-pushed the Manishearth:form-submit branch from 850572f to ca2d5d3 Oct 11, 2014
@Manishearth

This comment has been minimized.

Copy link
Owner Author

Manishearth commented on ca2d5d3 Oct 11, 2014

r=jdm

This comment has been minimized.

Copy link
Owner Author

Manishearth replied Oct 11, 2014

@bors: retry

This comment has been minimized.

Copy link
Owner Author

Manishearth replied Oct 11, 2014

@bors: retry

This comment has been minimized.

Copy link
Owner Author

Manishearth replied Oct 11, 2014

@bors: retry

@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented on ca2d5d3 Oct 11, 2014

saw approval from jdm
at Manishearth@ca2d5d3

This comment has been minimized.

Copy link
Contributor

bors-servo replied Oct 11, 2014

merging Manishearth/servo/form-submit = ca2d5d3 into auto

This comment has been minimized.

Copy link
Contributor

bors-servo replied Oct 11, 2014

Manishearth/servo/form-submit = ca2d5d3 merged ok, testing candidate = 3f6a9b9

This comment has been minimized.

Copy link
Contributor

bors-servo replied Oct 11, 2014

This comment has been minimized.

Copy link
Contributor

bors-servo replied Oct 11, 2014

saw approval from jdm
at Manishearth@ca2d5d3

This comment has been minimized.

Copy link
Contributor

bors-servo replied Oct 11, 2014

saw approval from jdm
at Manishearth@ca2d5d3

This comment has been minimized.

Copy link
Contributor

bors-servo replied Oct 11, 2014

merging Manishearth/servo/form-submit = ca2d5d3 into auto

This comment has been minimized.

Copy link
Contributor

bors-servo replied Oct 11, 2014

Manishearth/servo/form-submit = ca2d5d3 merged ok, testing candidate = 9dfd5e7

This comment has been minimized.

Copy link
Contributor

bors-servo replied Oct 11, 2014

This comment has been minimized.

Copy link
Contributor

bors-servo replied Oct 11, 2014

fast-forwarding master to auto = 9dfd5e7

bors-servo pushed a commit that referenced this pull request Oct 11, 2014
This is missing a lot of parts, so it doesn't really make any real-world form submission work yet. It provides a skeleton on which the missing bits can be filled in.

What works:
 - `<input>` elements except for `type=file`
 - GET/POST methods
 - URLencoded `enctype`s (default)
 - Submission via `<form>.submit()` only

Stuff that needs to be done for most simple real-world cases to work: 
 - [Working text input](#3585)
 - Click handlers for `<submit>`
 - Possibly `<textarea>` support
 - Support for the other two enctypes (#3649)

Todo:
 - Correctly implement [planned navigation](https://html.spec.whatwg.org/multipage/forms.html#planned-navigation) using `TrustedFormAddress`  (#3648)
 - [Correctly implement form owners.](#3553) Requires html5ever and some discussion of the spec.
 - `<input type=file>` support
 - Image submit support
 - Browsing contexts/targets
 - Support for non-`<input>` controls
 - Validation (?)
 - Dirname (?)
bors-servo pushed a commit that referenced this pull request Oct 11, 2014
This is missing a lot of parts, so it doesn't really make any real-world form submission work yet. It provides a skeleton on which the missing bits can be filled in.

What works:
 - `<input>` elements except for `type=file`
 - GET/POST methods
 - URLencoded `enctype`s (default)
 - Submission via `<form>.submit()` only

Stuff that needs to be done for most simple real-world cases to work: 
 - [Working text input](#3585)
 - Click handlers for `<submit>`
 - Possibly `<textarea>` support
 - Support for the other two enctypes (#3649)

Todo:
 - Correctly implement [planned navigation](https://html.spec.whatwg.org/multipage/forms.html#planned-navigation) using `TrustedFormAddress`  (#3648)
 - [Correctly implement form owners.](#3553) Requires html5ever and some discussion of the spec.
 - `<input type=file>` support
 - Image submit support
 - Browsing contexts/targets
 - Support for non-`<input>` controls
 - Validation (?)
 - Dirname (?)
bors-servo pushed a commit that referenced this pull request Oct 11, 2014
This is missing a lot of parts, so it doesn't really make any real-world form submission work yet. It provides a skeleton on which the missing bits can be filled in.

What works:
 - `<input>` elements except for `type=file`
 - GET/POST methods
 - URLencoded `enctype`s (default)
 - Submission via `<form>.submit()` only

Stuff that needs to be done for most simple real-world cases to work: 
 - [Working text input](#3585)
 - Click handlers for `<submit>`
 - Possibly `<textarea>` support
 - Support for the other two enctypes (#3649)

Todo:
 - Correctly implement [planned navigation](https://html.spec.whatwg.org/multipage/forms.html#planned-navigation) using `TrustedFormAddress`  (#3648)
 - [Correctly implement form owners.](#3553) Requires html5ever and some discussion of the spec.
 - `<input type=file>` support
 - Image submit support
 - Browsing contexts/targets
 - Support for non-`<input>` controls
 - Validation (?)
 - Dirname (?)
@Manishearth
Copy link
Member Author

Manishearth commented Oct 11, 2014

I'm getting intermittent timeouts on /html/semantics/forms/the-input-element/type-change-state.html and a lot of random intermittent failures (keep changing every time)

bors-servo pushed a commit that referenced this pull request Oct 11, 2014
This is missing a lot of parts, so it doesn't really make any real-world form submission work yet. It provides a skeleton on which the missing bits can be filled in.

What works:
 - `<input>` elements except for `type=file`
 - GET/POST methods
 - URLencoded `enctype`s (default)
 - Submission via `<form>.submit()` only

Stuff that needs to be done for most simple real-world cases to work: 
 - [Working text input](#3585)
 - Click handlers for `<submit>`
 - Possibly `<textarea>` support
 - Support for the other two enctypes (#3649)

Todo:
 - Correctly implement [planned navigation](https://html.spec.whatwg.org/multipage/forms.html#planned-navigation) using `TrustedFormAddress`  (#3648)
 - [Correctly implement form owners.](#3553) Requires html5ever and some discussion of the spec.
 - `<input type=file>` support
 - Image submit support
 - Browsing contexts/targets
 - Support for non-`<input>` controls
 - Validation (?)
 - Dirname (?)
@bors-servo bors-servo closed this Oct 11, 2014
@bors-servo bors-servo merged commit ca2d5d3 into servo:master Oct 11, 2014
1 check passed
1 check passed
default all tests passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.