I've written an .xhtml
page with the following code:
<html>
<head>
<title>Test</title>
</head>
<body>
<p>P</p>
</body>
</html>
I'm opening this page with JavaScript in a new window.
Unfortunately it's displayed as
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<div id="">
<html>
<head>
<title>Test</title>
</head>
<body>
<p>P</p>
</body>
</html>
</div>
</html>
This of course is invalid HTML. How can I remove those appended tags? And why are they created in the first place?
I'm using JSF 1.2, Facelets, the Portlet API 2.0 and JBoss PortletBridge.