Consider following HTML code:
<style> td, tr { border:1px solid gray; } </style>
<table class="tableinfo" cellspacing="1" cellpadding="3">
<tr>
<td>asd</td>
<td>bsd</td>
</tr>
<tr style="display: block;" >
<td class="">ttt</td>
<td class="">asd</td>
</tr>
</table>
With doctype:
<!doctype html>
In IE9 everything works fine but in IE10 table is broken:
Why does this happen?
How to fix this?
One solution is to add following:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
but this breaks styling in whole project.