[whatwg] Lists and legal documents

Thomas Broyer t.broyer at gmail.com
Sat Feb 6 04:01:03 PST 2010


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>

-- 
Thomas Broyer
/tɔ.ma.bʁwa.je/


More information about the whatwg mailing list