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 9238 - <p><ol><li></li></ol></p> gets fals error
Summary: <p><ol><li></li></ol></p> gets fals error
Status: RESOLVED INVALID
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: computer html file
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-13 04:32 UTC by Howard Cary Morris
Modified: 2015-08-23 07:07 UTC (History)
0 users

See Also:


Attachments

Description Howard Cary Morris 2010-03-13 04:32:04 UTC
get "Error found while checking this document as HTML5!"
and "Line 9, Column 24: No p element in scope but a p end tag seen. "

Correction: System is: Windows Vista

There is no real error that I can determine;
Code that can be used to recreate validation error is below:

<!DOCTYPE HTML><html>
<head><title>Test Bug</title>
<meta charset="utf-8">
</head>
<body>
<p>Start with a paragraph - Add an ordered list
<ol>
<li>First</li>
<li>Second</li></ol></p>
</body></html>
Comment 1 Ville Skyttä 2010-03-14 11:37:09 UTC
<ol> may not appear in <p> so the <p> is implicitly closed immediately before the <ol> start tag.  See also the HTML 5 related bug reporting instructions at http://validator.w3.org/feedback.html#bugreport