W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > December 2010

[Bug 11475] closing <li> tags are missing ?

From: <bugzilla@jessica.w3.org>
Date: Sun, 05 Dec 2010 20:58:03 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1PPLel-0007l3-Eh@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11475

Aryeh Gregor <Simetrical+w3cbug@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |Simetrical+w3cbug@gmail.com
         Resolution|                            |INVALID

--- Comment #1 from Aryeh Gregor <Simetrical+w3cbug@gmail.com> 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.).

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Sunday, 5 December 2010 20:58:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 5 December 2010 20:58:05 GMT