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 11475 - closing <li> tags are missing ?
Summary: closing <li> tags are missing ?
Status: VERIFIED INVALID
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-05 13:06 UTC by contributor
Modified: 2011-08-04 05:02 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2010-12-05 13:06:24 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/
Section: http://www.whatwg.org/specs/web-apps/current-work/#the-header-element

Comment:
closing <li> tags are missing ?

Posted from: 85.183.58.22
Comment 1 Aryeh Gregor 2010-12-05 20:58:03 UTC
Closing <li> tags are not required by HTML5:

"A li element's end tag may be omitted if the li element is immediately followed by another li element or if there is no more content in the parent element."
http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#optional-tags

Nor by HTML4, for that matter.  The spec deliberately uses a mix of styles to make sure people get that multiple styles are valid (unlike XHTML, which forces lowercase/closing tags/etc.).
Comment 2 Michael[tm] Smith 2011-08-04 05:02:55 UTC
mass-moved component to LC1