[webkit-reviews] review requested: [Bug 15277] COL element in table has 0 for offsetWidth : [Attachment 83227] Patch and test case

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 21 15:48:08 PST 2011


Daniel Bates <dbates at webkit.org> has asked  for review:
Bug 15277: COL element in table has 0 for offsetWidth
https://bugs.webkit.org/show_bug.cgi?id=15277

Attachment 83227: Patch and test case
https://bugs.webkit.org/attachment.cgi?id=83227&action=review

------- Additional Comments from Daniel Bates <dbates at webkit.org>
This patch implements offset{Left, Top, Width, Height} for table columns and
column groups and hence passes the test case "Stand alone test case shows COL
element does not return offsetWidth".

For some reason, offsetLeft and offsetTop for table columns and column groups
always return 0 in IE 7 and greater (why?) (see remark (*)). Therefore, I chose
to mimic IE's behavior and hardcode returning 0 for offsetLeft and offsetTop
because these properties are IE extensions (i.e. not defined in a W3C spec.).
Compare this behavior to Firefox.

(*) I was unsure of the best forum to report this issue. I couldn't find an IE
bug tracker. So, I described this issue on the Microsoft Connect "Internet
Explorer Web Development" forum:
<http://social.msdn.microsoft.com/Forums/en/iewebdevelopment/thread/08597d1f-71
53-4ebe-b834-4ac2883c2447>.


More information about the webkit-reviews mailing list