RESOLVED FIXED 148841
sectionRowIndex must return -1 when its parent is not a table, tbody, thead, or tfoot
https://bugs.webkit.org/show_bug.cgi?id=148841
Summary sectionRowIndex must return -1 when its parent is not a table, tbody, thead, ...
Ryosuke Niwa
Reported 2015-09-04 16:13:48 PDT
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
Attachments
Patch (4.51 KB, patch)
2015-09-29 20:18 PDT, Chris Dumez
no flags
Radar WebKit Bug Importer
Comment 1 2015-09-04 16:14:32 PDT
Chris Dumez
Comment 2 2015-09-29 20:18:31 PDT
Ryosuke Niwa
Comment 3 2015-09-29 20:22:01 PDT
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 :(
Chris Dumez
Comment 4 2015-09-29 20:24:14 PDT
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.
WebKit Commit Bot
Comment 5 2015-09-29 21:31:43 PDT
Comment on attachment 262135 [details] Patch Clearing flags on attachment: 262135 Committed r190337: <http://trac.webkit.org/changeset/190337>
WebKit Commit Bot
Comment 6 2015-09-29 21:31:48 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.