This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3438 - The validator issue an error where it shouldn't
Summary: The validator issue an error where it shouldn't
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-07 07:11 UTC by Rapha
Modified: 2006-07-07 09:16 UTC (History)
0 users

See Also:


Attachments

Description Rapha 2006-07-07 07:11:43 UTC
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>").
Comment 1 Robin Whittleton 2006-07-07 09:16:33 UTC
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)."