[whatwg] Lists and legal documents

Tab Atkins Jr. jackalmage at gmail.com
Sat Feb 6 06:57:02 PST 2010


On Sat, Feb 6, 2010 at 6:01 AM, Thomas Broyer <t.broyer at gmail.com> wrote:
> On Fri, Feb 5, 2010 at 4:34 PM, Tab Atkins Jr. <jackalmage at gmail.com> wrote:
>>
>> 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.
>
> How about marking up the "list" with ARIA instead of <ol>/<li>?
>
> Something like:
> <div role="list">
> <p role="listitem">a.
> <p role="listitem">b.
> </div>

That would work too, but it doesn't seem to have any inherent advantage over

<ol style=list-style:none;>
  <li>a. foo
  <li>b. foo
</ol>

~TJ


More information about the whatwg mailing list