- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 04 Mar 2009 15:50:59 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/autotest/client
In directory hutz:/tmp/cvs-serv29255
Modified Files:
buildtest.js
Log Message:
hack to add a tbody to please ff3 (to cope with rendering bugs of generated table cells with rowspan)
Index: buildtest.js
===================================================================
RCS file: /sources/public/2002/css-validator/autotest/client/buildtest.js,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- buildtest.js 4 Mar 2009 14:28:23 -0000 1.4
+++ buildtest.js 4 Mar 2009 15:50:57 -0000 1.5
@@ -29,6 +29,8 @@
table.setAttribute("id", tableid);
table.setAttribute("border", "2");
+ var tbody = document.createElement("tbody");
+
var tr = document.createElement("tr");
// first row
var cell = document.createElement("th");
@@ -67,7 +69,8 @@
tnode = document.createTextNode("Warnings");
cell.appendChild(tnode);
tr.appendChild(cell);
- table.appendChild(tr);
+ tbody.appendChild(tr);
+ table.appendChild(tbody);
return table;
}
@@ -105,7 +108,11 @@
generateLinkToTable(tableId);
}
// and attach the newly created table at the right place
- return table;
+ var tbody = table.getElementsByTagName("tbody");
+ if (tbody) {
+ return tbody[0];
+ }
+ return null;
}
function generateTestTable(req) {
Received on Wednesday, 4 March 2009 15:51:13 UTC