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 Range::createContextualFragment #11496
Conversation
highfive
commented
May 29, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
May 29, 2016
|
r? @nox |
| elem.root_element() | ||
| } | ||
| } else { | ||
| element.unwrap().downcast::<Element>().unwrap().root_element() |
This comment has been minimized.
This comment has been minimized.
GuillaumeGomez
May 29, 2016
Author
Contributor
This seems incorrect but cannot find another way to get the expected type.
| }; | ||
|
|
||
| // Step 3. | ||
| let fragment_node = element.upcast::<Node>().parse_fragment(fragment); |
This comment has been minimized.
This comment has been minimized.
GuillaumeGomez
May 29, 2016
Author
Contributor
It seems strange that I have to upcast to get back a node in order to use this method.
|
Fixes #11111. |
highfive
commented
May 29, 2016
|
New code was committed to pull request. |
|
Step 3 needs to be rewritten, and there should be tests for this. -S-awaiting-review +S-needs-code-changes +S-needs-tests +C-needs-test
|
highfive
commented
May 31, 2016
|
New code was committed to pull request. |
|
Just a few nits, but it still needs tests. -S-awaiting-review +S-needs-code-changes
|
highfive
commented
Jun 1, 2016
|
New code was committed to pull request. |
|
-S-awaiting-review -S-needs-tests Seems like there are tests already in WPT. Let's try. @bors-servo try
|
Implement Range::createContextualFragment <!-- 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/11496) <!-- Reviewable:end -->
|
|
highfive
commented
Jun 1, 2016
|
highfive
commented
Jun 1, 2016
|
New code was committed to pull request. |
Implement Range::createContextualFragment <!-- 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/11496) <!-- Reviewable:end -->
|
|
|
@bors-servo r+ I'll file a followup for the |
|
|
Implement Range::createContextualFragment <!-- 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/11496) <!-- Reviewable:end -->
|
|
highfive
commented
Jun 3, 2016
|
|
@bors-servo retry #11561 |
|
|
|
|
highfive
commented
Jun 3, 2016
|
|
@bors-servo retry #11561 #11574 |
|
|
|
|
GuillaumeGomez commentedMay 29, 2016
•
edited by larsbergstrom
This change is