Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRefactor html form dataset collection #7892
Conversation
|
Great work! Thanks for fixing the TODO about button submitters, too :) Just a few changes required to merge this now. Reviewed 2 of 2 files at r1. components/script/dom/htmlformelement.rs, line 234 [r1] (raw file): components/script/dom/htmlformelement.rs, line 238 [r1] (raw file): components/script/dom/htmlformelement.rs, line 244 [r1] (raw file): components/script/dom/htmlformelement.rs, line 246 [r1] (raw file): components/script/dom/htmlinputelement.rs, line 452 [r1] (raw file): if ty == "radio" || ty == "checkbox" {
if value.is_empty() {
value = "on".to_owned();
}
}
Some(FormDatum {
ty: ty,
name: name,
value: value,
})Comments from the review on Reviewable.io |
|
@jdm thanks, fixed! Had to enclose the chained conditionals in parens for the compiler. |
|
-S-awaiting-review +S-needs-code-changes Reviewed 2 of 2 files at r2. components/script/dom/htmlinputelement.rs, line 437 [r2] (raw file): Comments from the review on Reviewable.io |
|
@jdm ah, is that a bitwise or when it's not in a |
|
Correct. |
|
Looks good! Go ahead and squash the commits into one! Reviewed 1 of 1 files at r3. Comments from the review on Reviewable.io |
Factor out FormDatum collection for <input> Improve early return logic for getting the FormDatum from an <input> Condense element type patterns
|
@bors-servo: r+ |
|
|
Refactor html form dataset collection Factor out FormDatum collection for `<input>` Improve early return logic for getting the FormDatum from an `<input>` Condense element type patterns Proposed to close #7851 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7892) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry |
|
|
|
|
anthgur commentedOct 6, 2015
Factor out FormDatum collection for
<input>Improve early return logic for getting the FormDatum from an
<input>Condense element type patterns
Proposed to close #7851