W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2010

[whatwg] Lists and legal documents

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 5 Feb 2010 09:34:26 -0600
Message-ID: <dd0fbad1002050734w2168f055gb192d843ecd6d6b9@mail.gmail.com>
On Fri, Feb 5, 2010 at 9:21 AM, Anne van Kesteren <annevk at opera.com> wrote:
> These indicators are part of the content and cannot be governed by style
> sheets. End users having their own custom style sheets overwriting the
> indicators with their own preference would be a problem, for instance.
> I have seen at least one editor used that generates markup like this:
> ?<ul>
> ? <li><span class="ol">a.</span> ...</li>
> ? ...
> to work around this. You can see this online here:
> ?http://regels-stadskanaal.nl/
> I think it would be good if we either solved this problem natively or at
> least gave some advice for people finding themselves in a similar situation.

Since they are indeed part of the content, not a question of style,
I'm not seeing anything wrong with putting the marker directly in the
content.  Preferably you'd still want to use an <ol>, though, with
list-style:none on it.  User stylesheets can't generally turn on <ol>
markers, as a lot of sites use them or <ul>s as navigation and the
like, and completely restyle them in such a way that the website would
be rendered horribly if you turned the markers back on.

Some advice might be a good idea, just recommending still using <ol>,
turning off markers, and then putting the exact marker content into
the <li>s.

Received on Friday, 5 February 2010 07:34:26 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:20 UTC