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 upAdd DeleteRow method #12594
Add DeleteRow method #12594
Conversation
highfive
commented
Jul 25, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jul 25, 2016
| return Err(Error::IndexSize); | ||
| } | ||
| // Step 3. | ||
| rows.sections.remove(index as usize); |
This comment has been minimized.
This comment has been minimized.
GuillaumeGomez
Jul 25, 2016
Author
Contributor
I'm not sure it does remove the row as expected. If someone could confirm please?
This comment has been minimized.
This comment has been minimized.
| @@ -338,6 +348,22 @@ impl HTMLTableElementMethods for HTMLTableElement { | |||
| Ok(new_row) | |||
| } | |||
|
|
|||
| // https://html.spec.whatwg.org/multipage/tables.html#dom-table-deleterow | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
How does |
|
Or maybe |
|
@bors-servo try |
Add DeleteRow method <!-- 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/12594) <!-- Reviewable:end -->
|
|
Looks like no real WPT tests have been fixed by this patch... |
|
This doesn't actually remove the element from the dom tree, does it? |
|
@Ms2ger: It should now. I'm testing if it does it correctly. |
|
I added tests now as well. I think it's ready. |
| @@ -0,0 +1,50 @@ | |||
| <!doctype html> | |||
| <meta charset="utf-8"> | |||
| <title></title> | |||
This comment has been minimized.
This comment has been minimized.
|
Travis says the MANIFEST.json changes aren't quite right; fix it with |
|
Updated. |
| @@ -15226,6 +15226,10 @@ | |||
| "url": "/dom/nodes/prepend-on-Document.html" | |||
| }, | |||
| { | |||
| "path": "dom/nodes/remove-row.html", | |||
This comment has been minimized.
This comment has been minimized.
Ms2ger
Jul 27, 2016
Contributor
This test should go in its proper place: tests/wpt/web-platform-tests/html/semantics/tabular-data/the-table-element/.
|
Updated but the |
|
@bors-servo r+ |
|
|
|
@bors-servo p=11 |
Add DeleteRow method <!-- 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/12594) <!-- Reviewable:end -->
|
|
|
@bors-servo retry p=0 |
Add DeleteRow method <!-- 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/12594) <!-- Reviewable:end -->
|
|
GuillaumeGomez commentedJul 25, 2016
•
edited by larsbergstrom
This change is