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 upImplement input.setSelectionRange #9905
Conversation
highfive
commented
Mar 7, 2016
|
Looks like textfieldselection-setSelectionRange.html.ini should be removed as part of this PR, in that case! |
|
Looks good! I left a few comments, and don't forget to remove the test expectations as @jdm said! :) -S-awaiting-review +S-needs-code-changes Review status: 0 of 3 files reviewed at latest revision, 4 unresolved discussions. components/script/textinput.rs, line 520 [r1] (raw file): components/script/dom/htmlinputelement.rs, line 94 [r1] (raw file): components/script/dom/htmlinputelement.rs, line 459 [r1] (raw file): Ditto for all the other webidl methods. components/script/dom/htmlinputelement.rs, line 521 [r1] (raw file): Comments from the review on Reviewable.io |
|
You'll need to run |
|
@ecoal95 Yes, Also, I had to modify a single wpt test; |
|
Note to reviewer: Firefox currently passes the length+1 test that's being modified, so please check carefully that the test actually needs modification rather than the implementation. |
|
@jdm I guess I misread the spec slightly. Sorry! |
|
A few more nits, good job! :) -S-awaiting-review -S-fails-tidy +S-needs-code-changes Reviewed 3 of 3 files at r1. components/script/textinput.rs, line 520 [r5] (raw file): If for some reason lines can't be empty, I'd love a comment explaining why :) components/script/textinput.rs, line 531 [r5] (raw file): components/script/textinput.rs, line 539 [r5] (raw file): components/script/dom/htmlinputelement.rs, line 521 [r1] (raw file): Comments from the review on Reviewable.io |
|
Review status: 1 of 4 files reviewed at latest revision, 7 unresolved discussions. components/script/textinput.rs, line 520 [r5] (raw file): components/script/textinput.rs, line 531 [r5] (raw file): Comments from the review on Reviewable.io |
|
This looks good to me, thank you for doing this! :) I left a comment, to avoid a few unnecessary string allocations. Please let me know if you'd prefer this to land as-is and leave that as a followup (or file an issue in case you can't/don't want to), or doing it now. -S-awaiting-review +S-awaiting-answer Reviewed 1 of 4 files at r3, 2 of 3 files at r6. components/script/textinput.rs, line 520 [r5] (raw file): components/script/textinput.rs, line 531 [r5] (raw file): components/script/dom/htmlinputelement.rs, line 485 [r6] (raw file): We could create a new It's fine as a followup though :) Comments from the review on Reviewable.io |
|
Review status: all files reviewed at latest revision, 6 unresolved discussions. components/script/dom/htmlinputelement.rs, line 485 [r6] (raw file): Comments from the review on Reviewable.io |
|
Great! Nice job! For the next time, feel free to ping me when you push new commits, since GitHub doesn't send a notification :) @bors-servo: r+ -S-awaiting-answer -S-awaiting-review +S-awaiting-merge Reviewed 1 of 1 files at r7. Comments from the review on Reviewable.io |
|
Great, thank you again! @bors-servo: r+ |
|
|
Implement input.setSelectionRange Fixes #9862. Passes all tests for `input` in `tests/wpt/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html`. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9905) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry |
|
@bors-servo: retry |
|
@bors-servo: r+ |
|
|
|
Implement input.setSelectionRange Fixes #9862. Passes all tests for `input` in `tests/wpt/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html`. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9905) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry
|
Implement input.setSelectionRange Fixes #9862. Passes all tests for `input` in `tests/wpt/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html`. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9905) <!-- Reviewable:end -->
|
|
saurvs commentedMar 7, 2016
Fixes #9862.
Passes all tests for
inputintests/wpt/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html.