See https://html.spec.whatwg.org/multipage/tables.html#dom-tr-sectionrowindex When tr element's parent is not one of table, tbody, thead, or tfoot, sectionRowIndex must return -1. This bug was found by the newly imported test: LayoutTests/http/tests/w3c/html/semantics/tabular-data/the-tr-element/sectionRowIndex.html
<rdar://problem/22586870>
Created attachment 262135 [details] Patch
Comment on attachment 262135 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=262135&action=review > Source/WebCore/html/HTMLTableRowElement.cpp:88 > + RefPtr<HTMLCollection> rows; It's horrible that we have to create a HTML collection here :(
Comment on attachment 262135 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=262135&action=review >> Source/WebCore/html/HTMLTableRowElement.cpp:88 >> + RefPtr<HTMLCollection> rows; > > It's horrible that we have to create a HTML collection here :( If we see this being hot then we can optimize. But the new implementation is at least correct.
Comment on attachment 262135 [details] Patch Clearing flags on attachment: 262135 Committed r190337: <http://trac.webkit.org/changeset/190337>
All reviewed patches have been landed. Closing bug.