This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
I use the following html code : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <title>Some title</title> </head> <body> <p> <ul> <li>test</li> <li>test1</li> </ul> </p> </body> </html> And the validation show me that error, where it shouldn't I think... I don't understand that stupid invalid error, because the <ul> (same for a <ol>) il closed properly and is IN a <p> which is an element of type block... May you plz correct the validatior to handle such change ? Thank's in advance. The error : Line 8 column 5: document type does not allow element "ul" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag. <ul> 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>").
Invalid: <p> elements can only contain inline elements. Please see: http://www.w3.org/TR/html4/struct/text.html#h-9.3.1 "The P element represents a paragraph. It cannot contain block-level elements (including P itself)."