servo/components/script
bors-servo 040075ad08 Auto merge of #13358 - rjgoldsborough:form-action-url-11219, r=mbrubeck
Form action url 11219

First pass at fixing #10580.
I've added a new macro that returns a DomString with either the attr val or the doc url.
I then made the form element use that macro on the action attribute.
I also added a test that contains an iframe with a form and base url that submits to a page in
a resources directory.

I made all these changes based on https://github.com/servo/servo/pull/11219#issuecomment-223318881.

The only thing I'm confused on is how to change step 8. It looks to just be getting the action so I'm wondering if I need to change either step 9 or 10 instead?

---

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #10580 (github issue number if applicable).

- [X] There are tests for these changes OR

using that macro with the form action,
making the form submit process use base url,
adding tests.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13358)
<!-- Reviewable:end -->
2016-09-27 15:28:09 -05:00
..
docs
dom Auto merge of #13358 - rjgoldsborough:form-action-url-11219, r=mbrubeck 2016-09-27 15:28:09 -05:00
parse Reorder use statements 2016-09-09 04:55:19 +02:00
task_source Implement file reading task source 2016-07-14 13:27:42 -04:00
bluetooth_blacklist.rs Add WebBluetooth Blacklist support 2016-05-31 17:05:45 +02:00
build.rs Native MSVC windows build, convert to cmake 2016-08-17 09:50:51 -04:00
Cargo.toml Implement binding support for returning and accepting Promises in WebIDL. 2016-09-22 16:16:48 -04:00
clipboard_provider.rs Remove ConstellationChan. 2016-05-19 17:13:44 +02:00
CMakeLists.txt Fix doc build by resurrecting generation of supported DOM APIs.h 2016-09-24 15:06:06 -04:00
devtools.rs Reorder use statements 2016-09-09 04:55:19 +02:00
document_loader.rs Use fetch infrastructure to load external scripts 2016-09-21 11:50:55 -07:00
layout_wrapper.rs Filter non-element / non-text nodes in LayoutIterator. 2016-09-21 11:43:52 -07:00
lib.rs Put back video metadata 2016-09-09 14:03:03 +02:00
mem.rs Bump heapsize to 0.3 2016-02-13 11:13:19 +01:00
network_listener.rs Reorder use statements 2016-09-09 04:55:19 +02:00
origin.rs Reorder use statements 2016-09-09 04:55:19 +02:00
script_runtime.rs Support promises in workers. 2016-09-22 16:16:55 -04:00
script_thread.rs Support promises in workers. 2016-09-22 16:16:55 -04:00
serviceworker_manager.rs make structured clone an enum 2016-09-15 11:32:55 +05:30
textinput.rs Implement minlength for text inputs 2016-09-21 07:54:39 -05:00
timers.rs Support an equivalent of Trusted<T> for Rc<Promise> objects named TrustedPromise. 2016-09-22 16:16:59 -04:00
unpremultiplytable.rs
webdriver_handlers.rs Use fn pipeline_id consistently, not fn pipeline 2016-09-13 15:17:40 -04:00