Anthony Ramine
8ecb5962f3
Move util::str to style
2016-07-05 10:43:54 +02:00
mrmiywj
4bb88432b2
indexed getter of form elements
2016-06-14 21:40:32 -07:00
Ms2ger
684510bc94
Stop re-exporting AttrValue.
2016-06-07 13:15:23 +02:00
Rafael Quintero
80aad09ae4
delete suffixes
...
delete suffixes for variants SubmittedFrom, ResetFrom
delete suffixes
for variants SubmittedFrom, ResetFrom
2016-06-04 09:23:55 -04:00
Keith Yeung
05fc799f92
Clean up DOMManipulationTaskSource
2016-06-02 15:27:08 -04:00
Zhen Zhang
43ad4ba585
Add file backend support for Blob and related
...
Changes include:
- Add BlobImpl to Blob, and related caching mechanism
- Expose ResourceThreads to document_loader, workerglobalscope, worker, and global
- Fix encode_multipart_form_data
- Other small fixes to accommodate the above changes
2016-06-01 09:47:07 +08:00
Anthony Ramine
cdc7bca944
Move DOMString back to script
...
This entirely removes the 'non-geckolib' feature of the util crate.
2016-05-24 10:54:57 +02:00
bors-servo
de79f96775
Auto merge of #11333 - Manishearth:submit-submit-button, r=nox
...
Include <button type=submit> data whilst constructing the form dataset
This makes it possible to close things in github (see
https://github.com/Manishearth/mitochondria/issues/1 )
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
Either:
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- 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/11333 )
<!-- Reviewable:end -->
2016-05-23 04:18:09 -07:00
Manish Goregaokar
102cdaa7cc
Include <button type=submit> data whilst constructing the form dataset
2016-05-23 15:12:19 +05:30
Zhen Zhang
dd590d088b
Implement file-type functionalities in htmlinputelement and related
...
Changes include:
- Implement file selection and other DOM behaviours in htmlinputelement
- Integrate IpcSender<FileManagerThreadMsg> into ResourceThreads
- Improve filemanager_thread, including adding type_string field to SelectedFile
- Improve interfaces in FileList/File/Blob to accommodate the above changes
2016-05-23 15:35:46 +08:00
Per Lundberg
2f7ed1d73e
Removed unused imports
...
This fixes #11185 .
2016-05-15 22:24:26 +03:00
Keith Yeung
d1c0af9ae7
Implement text/plain form encoding
2016-05-11 21:17:31 -04:00
Keith Yeung
0f172491d3
Add picking of encoding for url encoded data
2016-05-11 21:17:31 -04:00
Keith Yeung
9be649f8ed
Rename encode_form_data to encode_multipart_form_data
2016-05-11 21:17:31 -04:00
Connor Brewster
169af6f35e
fix formsubmitter methods for buttons
2016-05-04 16:39:41 -06:00
Keith Yeung
16361086d9
Add planned navigation to submit as entity body ( fixes #9829 )
2016-04-30 21:42:57 -04:00
Prabhjyot Singh Sodhi
cfde40e225
Support form submission of multipart/form-data
2016-04-30 21:42:50 -04:00
Keith Yeung
33acb1937c
Remove extraneous script_chan parameter from Trusted::new
2016-04-28 10:52:44 +02:00
Rebecca
526525b835
Add referrer policy pass-through and referrer header logic
...
add pass-through from doc to http-loader for referrer_policy, ref_URL
add logic for setting referer header
add script pass-through for referrer
add unit tests for setting referer header
2016-04-25 16:41:06 -04:00
Simon Sapin
7932ab6ac2
Upgrade to rust-url 1.0 and hyper 0.9
2016-04-23 20:27:58 +02:00
Zbynek Winkler
924d804583
Move '&&' to the end of the previous line.
...
Following https://github.com/servo/servo/issues/10692 this is just a
formating change to satisfy a new tidy requirement of not having '&&' at
the beginning of a line.
2016-04-22 14:28:18 +02:00
Keith Yeung
2d503c8281
Rename fn get_form_datum to form_datum
2016-04-11 08:56:47 -04:00
Corey Farwell
11a3ce1257
Remove get_*
on getters as per RFC 0344.
...
https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis
https://github.com/servo/servo/issues/6224
2016-04-10 22:49:35 -04:00
Rahul Sharma
2caa9a2a76
refactors entities from script_thread into script_runtime
2016-04-06 12:46:49 +05:30
Keith Yeung
3f2cbf0025
Add task_source directory
...
Use DOMManipulationTaskSource whenever possible
2016-03-10 01:05:53 -05:00
Keith Yeung
ace5b7a2e8
Implement planned navigation
2016-02-18 06:37:32 -05:00
Ms2ger
5317af1e19
Remove the global argument to EventTarget::{fire_event, fire_simple_event}.
2016-02-08 19:21:56 +01:00
Joshua Holmer
75d258f866
Update HTMLFormElement.length to be of type unsigned long
...
Fixes #9402
2016-01-22 12:09:12 -05:00
Corey Farwell
1ff1ec69dd
HTMLFormElement::Elements should honor [SameObject] attribute
...
Ideally, this would get tested by web-platform-tests, but that has yet
to be implemented:
https://github.com/w3c/web-platform-tests/issues/2462
2016-01-10 18:27:07 -05:00
Corey Farwell
f72d153c8d
Implement HTMLFormElement::Length
2016-01-10 14:44:13 -05:00
Corey Farwell
bff8947e43
Implement HTMLFormElement::Elements
...
Fixes #8566
2016-01-10 12:08:24 -05:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
Brandon Fairchild
fb0304cfdb
Rename fire_simple_event_params to fire_event
...
Fixes #9180 .
2016-01-07 13:49:49 -05:00
Guillaume Gomez
99ac1a81cc
Generate PartialEq automatically
2016-01-03 18:07:09 +01:00
Johannes Linke
6b215f38ee
Fix a bunch of clippy lints
2016-01-02 23:27:15 +01:00
Nicolas
1f234af2ac
form submission for <textarea> and <select>
...
small changes from code review
!child.get_disabled_state() becomes child.get_enabled_state()
2015-12-30 00:27:35 -05:00
bors-servo
f77c792886
Auto merge of #9055 - simartin:issue_9042, r=Wafflespeanut
...
Issue #9042 : Report incorrect number of spaces around => in the style checker
Fixes https://github.com/servo/servo/issues/9042
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9055 )
<!-- Reviewable:end -->
2015-12-24 10:55:48 +05:30
Simon Martin
cec661fa86
Issue #9042 : Report incorrect number of spaces around => in the style checker.
2015-12-23 20:54:26 +01:00
Arthur Skobara
d38771e270
Implement EventTarget::fire_simple_event and EventTarget::fire_simple_event_params
2015-12-22 13:47:57 +06:00
Mathieu Agopian
11234f5370
Use Url.join instead of UrlParser.base_url(...).parse ( #9002 )
2015-12-18 17:02:41 +01:00
Ms2ger
50ff54c37c
Silence warnings in htmlformelement.rs.
2015-12-17 16:03:22 +01:00
Keith Yeung
5ed03a5466
Remove big blob of commented code
2015-12-16 10:36:13 -08:00
Keith Yeung
3395e54585
Implement basic framework for static and interactive validation on forms
2015-12-15 16:34:42 -08:00
Arthur Skobara
8d2f9fc586
Add comments for the "Constructing the form data set" algorithm
2015-12-14 08:37:30 +06:00
Corey Farwell
4accaf50b2
Pass around event types as Atoms instead of Strings
...
`Event` internally stores the `type` as an `Atom`, and we're `String`s
everywhere, which can cause unnecessary allocations to occur since
they'll end up as `Atom`s anyways.
2015-12-10 23:47:25 -05:00
bors-servo
18f74a3d69
Auto merge of #8293 - simartin:issue_8113, r=jdm
...
Issue #8113 : Support file, about and data schemes as form action.
Fix https://github.com/servo/servo/issues/8113 by supporting those schemes as form action and unit test the "about:blank" case
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8293 )
<!-- Reviewable:end -->
2015-12-03 22:48:46 +05:30
Eli Friedman
e42dcb3712
Remove unnecessary conversion to/from DOMString for localName.
2015-12-02 13:42:45 -08:00
Simon Martin
2b332a2138
Issue #8113 : Support file, about and data schemes as form action.
2015-12-02 22:41:24 +01:00
Eli Friedman
c02c0576c8
Compute attribute name atoms at compile-time.
2015-11-27 15:42:34 -08:00
Alan Jeffrey
84bde75b42
Replaced DOMString constructor by conversion functions.
...
Replaced DOMString(...) by DOMString::from(...).
Replaced ....0 by String::from(...).
Removed any uses of .to_owner() in DOMString::from("...").
2015-11-12 17:52:59 -06:00