W3C home > Mailing lists > Public > public-html@w3.org > June 2007

Re: html 5 and accessibility issue

From: aurélien levy <aurelien.levy@free.fr>
Date: Sat, 30 Jun 2007 18:34:54 +0200
Message-ID: <4686862E.6060902@free.fr>
To: public-html@w3.org


>>>> <dl>
>>>>  <dt> 1st terme </dt>
>>>>  <dd> 1st terme description </dd>
>>>>  <dd> 2nd terme description </dd>
>>>>  <dt> 2nd terme </dt>
>>>>  <dt> 3rd terme</dt>
>>>>  <dd> 3rd terme description</dd>
>>>> </dl>
>>>>
>>>> with no way for AT to know that 2nd terme description is actually the
>>>> 2nd terme description and not the second description of the first 
>>>> terme
>>>
>>> Actually, no, you can't. What you're doing is not conforming to either
>>> HTML 4 or HTML 5.
>>
>> How is the code of aurelien's example definition list not conforming
>> to html 4.01?
>
> It is technically conforming, but the example is trying to associate a 
> <dd> with a subsequent <dt>, which has never been possible.  It's also 
> not clear what the use case for doing so is.  Just swap the <dt> and 
> <dd> for the 2nd term and description, and it gives the intended meaning.
>
Because i can want to have my description visually before his term (i 
know i can achieve that with css but most of people simply choose the 
simplest way).
Even a full dd dt structure in this order validate in html 4
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.fairytells.net%2Fdltest2.html
Now with html 5 i can't
http://hsivonen.iki.fi/validator/html5/?doc=http%3A%2F%2Fwww.fairytells.net%2Fdltest2-html5.html

At least we need to add an explicit rule to say in semantical meaning dt 
should always be followed by his associated dd. But the proposed :
<dl>
    <li>
        <dt></dt>
        <dd></dd>
    </li>
</dl>
is far better since i can do want i want with the order of dt and dd and 
still have association between them
Received on Saturday, 30 June 2007 16:35:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:01 GMT