Re: <di>? Please?

04.02.2012, 00:22, "Ian Hickson" <ian@hixie.ch>:
> On Tue, 10 Jan 2012, Hugh Guiney wrote:
>
>> šAs I understand it, the main reason for rejecting <di> was that it
>> šsolves a problem that is allegedly CSS's job, but as an author who uses
>> š<dl>s quite extensively, adding a grouping element would really make my
>> šlife a lot easier.
>
> There are a number of places in HTML where it would be nice to be able to
> group things together -- just look at how often people stick <div>s in
> their pages for no purpose whatsoever other than styling.
>
> This shouldn't be necessary. It's a limitation of CSS.
>
> The right solution is for CSS to provide some pseudo-element or other
> mechanism that introduces an anonymous container into the rendering tree
> that wraps the elements you want to wrap. For example, with the square
> brackets representing the anonymous boxes:
>
> šš<dl>
> ššš[<dt><dd>]
> ššš[<dt><dd>]
> šš</dl>
>
> ššdl::group(dt...dd) { border: solid; }
>
> šš<header>
> ššš<p><a href="/">Home</a>
> ššš[
> ššššš<h1>The Blog</h1>
> ššššš<p class="byline">Our blog away from home
> ššš]
> ššš<p class="copyright">Bla bla
> šš</header>
>
> ššheader::group(h1...p.byline) { border: solid; }
>
> This isn't a formal proposal, but you get the idea. If we solve this
> problem, the need for <di> completely goes away, but more importantly, so
> does the need for a huge number of <div>s.
>
> --
> Ian Hickson ššššššššššššššU+1047E ššššššššššššššš)\._.,--....,'``. šššfL
> http://ln.hixie.ch/ ššššššU+263A ššššššššššššššš/, šš_.. \ šš_\ š;`._ ,.
> Things that are impossible just take longer. šš`._.-(,_..'--(,_..'`-.;.'

The problem is that it will most likely not be solved via CSS (solved means we have finished CR spec and all browsers supports it) in near 10 years or so, while DIV wrapper work _right now_ in all browsers.

Received on Friday, 3 February 2012 22:38:45 UTC