-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow <div> to group <li> inside <ol>/<ul>… #2007
Comments
For this to be equivalent to the If you want to group several list items together, that seems like a separate use case from that of In your examples, it seems to me it's actually two lists, so should be two |
Maybe. The equivalent to |
I agree with @zcorpan . if there is any reason to semantically group list items together, you may as well have separate lists. |
The
I think a similar argument can be made for |
If there is a problem with CSS multicolumn, I suggest you bring it up with the CSSWG. CSS multicolumn is implemented and maintained, so no need for HTML to work around problems with it. The OP lists "possible" use cases; I suggest these are not particularly common requests and we should not change HTML to address them. Any change to HTML has a cost and in this case I don't really see much benefit. |
I only brought it up because it was mentioned in the |
Introducing div as a semantic groupening element without being semantic to dt/dd was an error already, but at least there was a use case that wasn't sufficiently fulfilled (think like if or where missing from the table tags) - this here, as explained can easily and logically be done by sub groups. No need to create more mess; deriving the mental model actually shows that dt/dd should have been done the non-lazy-way by adding a dgroup tag. |
Depending on the final solution to #1937, it will probably make sense – albeit less than inside
dl
– to havediv
elements be able to group list items in all other kinds of lists, especiallyli
insideul
andol
.Possible use cases
Pros and cons without labeling each
li
:I guess it could be helpful when partially/successively revealing lists, e.g. in onscreen presentations. If I remember correctly Lateχ Beamer supports specialized commands (or environments?) for that, but also its angle bracket syntax for
\item
.This HTML may be generated from either of the following Markdown codes (although Commonmark says otherwise):
The latter would result in a single list with paragraphs
p
within (at least the middle) list itemsli
, the former would be two separate bullet lists – at least according to Commonmark.Plain-text software changelogs often have different bullet types for types of updates, e.g. ‘bug fix’ and ‘new feature’.
Recipes with multiple components
The text was updated successfully, but these errors were encountered: