W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > July 2011

[Bug 13128] Allow wrapping list items in DIV elements

From: <bugzilla@jessica.w3.org>
Date: Sun, 10 Jul 2011 19:47:40 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Qfzye-0008Ci-3x@jessica.w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:13 UTC