It must be something else, maybe the headers. I get a validation error in W3C with this file:
Code:
<?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" xmlns:ops="http://www.idpf.org/2007/ops" xml:lang="en">
<head>
<title>Title</title>
</head>
<body>
<p>Test
<div>inner div</div>
</p>
</body>
</html>
The error is clear:
Quote:
Line 9, Column 5: document type does not allow element "div" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag
<div>inner div</div>
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
|