[whatwg] INS and DEL in lists

Dnia 26-03-2008, ?r o godzinie 12:42 -0500, Tab Atkins Jr. pisze:

>         
> I'm coming around to the opinion that <dl>, <ul>, and <ol> (and the
> new list elements in html5) should allow a larger set of elements as
> their direct children.  I've been playing around with <hn> within <ul>
> or <ol> (with the intended semantics being that it's a header *for the
> list*), as it provides a nice tight binding that makes it easier to
> style and move around with CSS.  I could also use <section> or <div>,
> of course, but my solution communicates exactly the semantics I want
> and nothing else.

OTOH it breaks the context-free structure of the DTD: 
INS can have LI only if within a list.
I am not sure it is DTD-able.

(Yes, it would make a counterargument to my own wish :-b)

Chris

Received on Thursday, 27 March 2008 10:28:57 UTC