LayoutTests:
Based on test cases provided by Maks Orlovich.
- test for http://bugzilla.opendarwin.org/show_bug.cgi?id=4586
rowIndex calculation doesn't consider head to come before body.
* fast/table/rowindex.html: Added.
* fast/table/rowindex-expected.checksum: Added.
* fast/table/rowindex-expected.png: Added.
* fast/table/rowindex-expected.txt: Added.
WebCore:
Reviewed, redone a bit, and landed by Darin (help from Eric too).
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4586
rowIndex calculation doesn't consider head to come before body.
Test: fast/table/rowindex.html
* khtml/html/html_tableimpl.cpp: (DOM::HTMLTableRowElementImpl::rowIndex):
Change algorithm so the rows are numbered in this order: (a) all rows in the
table header section, (b) all rows in all table body sections, (c) all rows
in the table footer section. Rows in extra table header or footer sections
don't get row numbers (rowIndex returns -1). This matches Firefox.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7 files changed