
08-16-2009
|
|
|
|
?? IE 8 Mis-handles the <br> Element ??
Hello all,
I think most of us know that an empty element can be abbreviated as <xyz/>.
We see this all the time with the <hr> and <br> elements.
I have a situation where I'm using XHTML 1.1 with IE 8. IE 8 does not render
the <br> element correctly (although Firefox does). The problem is that IE 8
prodices *two* line breaks when it should produc only one. The complete
document is below.
Does anyone have a comment on this? Is it in fact incorrect? I'm about 99%
sure it is. Thanks.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
</head>
<body>
<p>Hello<br></br>World!</p>
</body>
</html>
|