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
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
Depends on:
Reported: 2006-07-07 07:11 UTC by Rapha
Modified: 2006-07-07 09:16 UTC (History)
0 users

See Also:


Description Rapha 2006-07-07 07:11:43 UTC
I use the following html code :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
	<title>Some title</title>

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.
 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:

"The P element represents a paragraph. It cannot contain block-level elements (including P itself)."