[Webkit-unassigned] [Bug 15277] COL element in table has 0 for offsetWidth

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


https://bugs.webkit.org/show_bug.cgi?id=15277


Daniel Bates <dbates at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #82598|0                           |1
        is obsolete|                            |
  Attachment #83227|                            |review?
               Flag|                            |




--- Comment #11 from Daniel Bates <dbates at webkit.org>  2011-02-21 15:48:09 PST ---
Created an attachment (id=83227)
 --> (https://bugs.webkit.org/attachment.cgi?id=83227&action=review)
Patch and test case

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-7153-4ebe-b834-4ac2883c2447>.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list