[whatwg] Nested list

Ian Hickson ian at hixie.ch
Thu Sep 3 17:29:18 PDT 2009


On Thu, 3 Sep 2009, Ryosuke Niwa wrote:
> On Thu, Sep 3, 2009 at 4:33 PM, Ian Hickson <ian at hixie.ch> wrote:
> >
> > I don't think nested lists really make much sense -- a list is a list 
> > of items, and a nested list is just one of the items.
> 
> Are you arguing that all major implementations are wrong, and that we 
> need to fix them?

In their implementation of execCommand() commands? Absolutely, yes. 
Browsers are so buggy in this space it's unreal.


> Even though many Web apps. are relying on this "wrong" convention?

In what sense are they relying on browsers generating incorrect HTML4 
markup?


> While I agree that a nested list is one item in the outer list, it is 
> different from a list inside a "paragraph" which happens to be a list 
> item.

Not sure what you mean.


> > > For example, all major browsers (Firefox, IE, & WebKit) produce 
> > > slightly different versions of HTML when indenting "item 2" in the 
> > > following HTML (assume it's content-editable):
> > >
> > > <ol>
> > > <ol id="u1"><li id="i1">item 1</li></ol>
> > > <li id="i2">item 2</li>
> > > <ol id="u3"><li id="i3">item 3</li></ol>
> > > </ol>
> >
> > Well that's just very wrong on so many levels. I don't think we want 
> > to condone it.
> 
> That's why I'm suggesting to standarize it.  And do you suppose all UA 
> implementors would "correct" their behavior?

There are lots of bugs that need fixing with execCommand(); I don't see 
why this wouldn't be one of them.

(Currently the 'indent' command isn't actually part of HTML5 anyway; for 
various reasons, it and a number of other commands will likely not be 
specified in this version and will wait a more well-defined framework to 
define command, in the next version.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list