<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
<style type="text/css">
#textarea1 {
width: 100%;
overflow:hidden;
}
#table1 {
background-color:#0000ff;
width: 100px;
}
</style>
</head>
<body>
<form id="form1">
<table id="table1" >
<tr><td><textarea cols="0" rows="2" id="textarea1"></textarea></td></tr>
</table>
</form>
</body>
</html>
The textarea is not rendered correctly by ie8 in the table (it is wider than its cell). If I remove the doctype tag it renders correctly. Am I doing something stupid