[Bug 13128] Allow wrapping list items in DIV elements

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

--- Comment #6 from Aryeh Gregor <Simetrical+w3cbug@gmail.com> 2011-07-10 19:47:37 UTC ---
It turns out another reason I want this is for execCommand().  Suppose you have
markup like

<ol>
  <li>foo
  <ol style=color:red>
    <li>bar
    <li>baz
  </ol>
</ol>

and the user selects the inner list and runs execCommand("outdent").  This
should get rid of the inner list and make its two items items of the outer
<ol>, but should also preserve the style.  If the spec allowed it, I would make
it do

<ol>
  <li>foo
  <div style=color:red>
    <li>bar
    <li>baz
  </div>
</ol>

Reapplying the style to the children will work in execCommand()-specific cases,
but it won't work for arbitrary style.  Consider background-color, or border,
or things like that.  Explicit meaningless wrappers are sometimes necessary in
CSS, and that's not going to change.

-- 
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, 10 July 2011 19:47:41 UTC