[Bug 13128] Allow wrapping list items in DIV elements

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13128

--- Comment #10 from Aryeh Gregor <ayg@aryeh.name> 2011-08-15 19:27:30 UTC ---
(In reply to comment #8)
> If the only reason is styling, then we should fix this in CSS. Requiring that
> authors wrap random parts of their documents in <div>s just so they can style
> them is a failure of the style layer and a layering violation. You shouldn't
> have to change the markup to get the look you want.

It's not purely a styling issue, it's a logical issue.  There's no way to
indicate that several consecutive li's are logically related, for style or
script or any other purpose.

> Furthermore, this massively complicates the processing that tools would have to
> do to process lists. Right now it's very simple, you get the element and you
> walk its children. If we make the markup at this level arbitrarily complicated,
> it's going to cause all kinds of troubles.

That's absolutely true.  I would not look forward to fixing the editing
algorithms to handle this at all.

> Another reason is that it's syntactically dangerous. Can you spot the mistake
> here?
> 
>    <ul>
>      <li>...
>      <li>...
>      <div>
>       <li>...
>       <li>...
>      </div>
>      <li>...
>    </ul>

Also a fair point.

I'm okay with this resolution.  Marat, if you're not, you should follow the
instructions in comment 8 -- if you leave it resolved, Hixie won't even see
your response.  I don't recommend reopening it unless you have new arguments to
present, though; you should either add the Disagree keyword or escalate to a
tracker request.

-- 
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 Monday, 15 August 2011 19:27:33 UTC