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 cells, rows, cellIndex IDL attributes and insertRow, deleteRow, insertCell, deleteCell, and cellIndex IDL methods for tabular data #6936
Conversation
c48c3e2
to
dc0289d
|
Having this all squashed into one commit makes it hard to figure out if they all have sufficient tests. |
|
The issue is that the existing WPT tests depends on all these features, so implementing them separately means none of the tests will pass. How about I make a list of spec sections/steps that this implements and for each one point out which test tests it (and add missing ones). That should make reviewing easier. |
|
Hm, fun. That would probably help, thanks! |
|
Split the caption stuff into #7063 |
|
Split createTBody into #7089 |
|
Should that one be closed? |
|
|
|
@nox I'll try to split some other changes out, but some will stay in this PR. |
060918a
to
e23bf12
382cdcc
to
6d6607d
|
Ready for review. I tried to test that cells and rows filter out children elements that aren't of the right type, but I think the html5 parsing algorithm automatically wraps other elements in |
|
You may not be able to get there through the HTML parser, but script can certainly do it. |
|
Good point, I added tests for that. |
|
@Ms2ger review ping? |
|
As per this comment, unless @dzbarsky says otherwise I can take ownership of this PR. |
Extracted from servo#6936
|
Going to open these into smaller individual PRs (starting with #7823). No need to keep this open. |
Implement HTMLTableRowElement::Cells Extracted from #6936 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7823) <!-- Reviewable:end -->
Extracted from servo#6936
Extracted from servo#6936
Extracted from servo#6936
Extracted from servo#6936
| @@ -6,7 +6,7 @@ | |||
| // https://www.whatwg.org/html/#htmltableelement | |||
| interface HTMLTableElement : HTMLElement { | |||
| attribute HTMLTableCaptionElement? caption; | |||
| HTMLElement createCaption(); | |||
This comment has been minimized.
This comment has been minimized.
frewsxcv
Oct 3, 2015
Member
Do you remember why you did this @dzbarsky? For reference: https://html.spec.whatwg.org/multipage/tables.html#htmltableelement
This comment has been minimized.
This comment has been minimized.
dzbarsky
Oct 5, 2015
Author
Member
It lets us get rid of the HTMLElementCasts, and it doesn't really matter what type you declare as being returned in the IDL, what matters is the properties/methods on the type actually returned.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Continued from servo#6936
Continued from servo#6936
Continued from servo#6936
Extracted from servo#6936
Extracted from servo#6936
Extracted from servo#6936
Extracted from servo#6936
Continued from servo#6936
Continued from servo#6936
Continued from servo#6936
Continued from servo#6936
Continued from servo#6936
Continued from servo#6936
…terow, r=nox Implement deleteRow and insertRow for <table> element Continued from #6936 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7854) <!-- Reviewable:end -->
Implement HTMLTableCellElement::CellIndex Extracted from #6936 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7829) <!-- Reviewable:end -->
dzbarsky commentedAug 3, 2015