width, innerWidth and tables
http://www.w3.org/TR/CSS21/tables.html#height-layout
There are some adjustments to make when getting the innerWidth of tables. Tables use something closer to the old IE box model (where clientWidth includes the padding) which makes width and innerWidth incorrect.
I propose fixing this by checking the display property. If it is table-ish, adjust accordingly.
I can make this patch (along with everything else) when I finally get some time ....