W3C home > Mailing lists > Public > www-style@w3.org > October 2009

CSSOM: getClientRects for table with caption

From: Erik Arvidsson <arv@chromium.org>
Date: Mon, 12 Oct 2009 16:10:11 -0700
Message-ID: <34df39070910121610j46e72a67sef980415a3060483@mail.gmail.com>
To: www-style@w3.org
Cc: Anne van Kesteren <annevk@opera.com>
The CSSOM View Module describes how to get the client rects of a table at:
http://www.w3.org/TR/cssom-view/#the-getclientrects However, for tables with
a caption all but Firefox returns a single rect. Is there a reason why the
spec describes a different behavior than what 3 out 4 browsers use?

The following test case shows the issue:

http://www.plexode.com/cgi-bin/eval3.py#ht=%3Ctable%20id%3Dt%3E%0D%0A%20%20%3Ccaption%3EHi%3C%2Fcaption%3E%0D%0A%20%20%3Ctr%3E%3Ctd%3Eone%3Ctd%3Etwo%0D%0A%20%20%3Ctr%3E%3Ctd%3Ethree%3Ctd%3Efour%0D%0A%3C%2Ftable%3E&ohh=1&ohj=1&jt=document.getElementById('t').getClientRects().length&ojh=1&ojj=1&ms=100&oth=0&otj=0&cex=1

<http://www.plexode.com/cgi-bin/eval3.py#ht=%3Ctable%20id%3Dt%3E%0D%0A%20%20%3Ccaption%3EHi%3C%2Fcaption%3E%0D%0A%20%20%3Ctr%3E%3Ctd%3Eone%3Ctd%3Etwo%0D%0A%20%20%3Ctr%3E%3Ctd%3Ethree%3Ctd%3Efour%0D%0A%3C%2Ftable%3E&ohh=1&ohj=1&jt=document.getElementById('t').getClientRects().length&ojh=1&ojj=1&ms=100&oth=0&otj=0&cex=1>IE:
1
WebKit: 1
Opera: 1
Firefox: 2 -- erik
Received on Tuesday, 13 October 2009 07:22:48 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:21 GMT