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 upindexed getter of form elements #11697
Conversation
highfive
commented
Jun 10, 2016
|
Heads up! This PR modifies the following files:
|
|
You still need to fix the comments made on the previous PR. |
|
@Ms2ger Other comments have been fixed. |
| // https://html.spec.whatwg.org/multipage/#dom-form-item | ||
| fn IndexedGetter(&self, index: u32, found: &mut bool) -> Option<Root<Element>> { | ||
| let elements = self.Elements(); | ||
| (*elements).IndexedGetter(index, found) |
This comment has been minimized.
This comment has been minimized.
| <form id=form> | ||
| <table> | ||
| <tr> | ||
| <td><input type="radio" name="radio1" id="r1" value=1></td> |
This comment has been minimized.
This comment has been minimized.
highfive
commented
Jun 10, 2016
|
New code was committed to pull request. |
|
Sorry for that I didn't notice that it was changed on my other PC. My bad. |
|
Isn't #11405 (the issue that this PR is trying to fix) supposed to be assigned to @catchmrbharath? |
|
Sorry for that I did not notice that. This issue was on my ToDo list and still open, so I just tried to pick it up. |
highfive
commented
Jun 12, 2016
|
New code was committed to pull request. |
1 similar comment
highfive
commented
Jun 12, 2016
|
New code was committed to pull request. |
| @@ -17,7 +17,7 @@ interface HTMLFormElement : HTMLElement { | |||
|
|
|||
| [SameObject] readonly attribute HTMLFormControlsCollection elements; | |||
| readonly attribute unsigned long length; | |||
| //getter Element (unsigned long index); | |||
| getter Element? (unsigned long index); | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| <tr> | ||
| <td><input type="radio" name="radio1" id="r1" value=1></td> | ||
| <td><input type="radio" name="radio2" id="r2" value=2></td> | ||
| </tr> |
This comment has been minimized.
This comment has been minimized.
KiChjang
Jun 13, 2016
•
Member
Following on to @Ms2ger's comment, why is this still under a <tr> and <td> tag?
highfive
commented
Jun 13, 2016
|
New code was committed to pull request. |
|
@KiChjang Sorry for that I'm not familiar with FE programming. |
|
I'm sorry to do this to you, but @KiChjang was wrong about the |
highfive
commented
Jun 13, 2016
|
New code was committed to pull request. |
|
Yep, |
|
https://developer.mozilla.org/en-US/docs/Mozilla/WebIDL_bindings and http://doc.servo.org/script/dom/bindings/index.html might be what you're looking for, or else http://heycam.github.io/webidl/ is the actual specification for WebIDL files. |
highfive
commented
Jun 13, 2016
|
New code was committed to pull request. |
|
|
highfive
commented
Jun 14, 2016
|
|
That test uses indexed getters on form elements, so that's a pleasant surprise :) |
highfive
commented
Jun 14, 2016
|
New code was committed to pull request. |
|
Please squash the commits :) |
|
Sorry, I forgot that;) |
|
@bors-servo r=Ms2ger |
|
|
indexed getter of form elements <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11405 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/11697) <!-- Reviewable:end -->
|
|
highfive
commented
Jun 15, 2016
|
|
@bors-servo retry #11574 |
|
|
|
|
mrmiywj commentedJun 10, 2016
•
edited by larsbergstrom
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is