WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Can a list item contain a button as its child?

for

Number of posts in this thread: 6 (In chronological order)

From: Lal Poorna Chand
Date: Mon, May 14 2018 8:01AM
Subject: Can a list item contain a button as its child?
No previous message | Next message →

Hi,

Can a 'list item' contain a button as its child??
What are the typical structures of a list item and a menu item??
Explain with examples.

Thanks,

Chand.

From: Angela French
Date: Mon, May 14 2018 9:21AM
Subject: Re: Can a list item contain a button as its child?
← Previous message | Next message →

Can you describe the text please? Sounds unusual.

Angela French
SBCTC

-----Original Message-----
From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > On Behalf Of Lal Poorna Chand
Sent: Monday, May 14, 2018 7:01 AM
To: = EMAIL ADDRESS REMOVED =
Subject: [WebAIM] Can a list item contain a button as its child?

Hi,

Can a 'list item' contain a button as its child??
What are the typical structures of a list item and a menu item??
Explain with examples.

Thanks,

Chand.

From: Lal Poorna Chand
Date: Mon, May 14 2018 9:32AM
Subject: Re: Can a list item contain a button as its child?
← Previous message | Next message →

Hi,

My doubt is regarding the control types and their hierarchy.
What can be the structure of a 'List item' control type??

Thanks,
Chand.

On 14 May 2018 at 20:51, Angela French < = EMAIL ADDRESS REMOVED = > wrote:

> Can you describe the text please? Sounds unusual.
>
> Angela French
> SBCTC
>
> -----Original Message-----
> From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > On Behalf Of
> Lal Poorna Chand
> Sent: Monday, May 14, 2018 7:01 AM
> To: = EMAIL ADDRESS REMOVED =
> Subject: [WebAIM] Can a list item contain a button as its child?
>
> Hi,
>
> Can a 'list item' contain a button as its child??
> What are the typical structures of a list item and a menu item??
> Explain with examples.
>
> Thanks,
>
> Chand.
> > > at http://webaim.org/discussion/archives
> > > > > >

From: glen walker
Date: Mon, May 14 2018 9:43AM
Subject: Re: Can a list item contain a button as its child?
← Previous message | Next message →

If you're talking about an <li> element, almost anything can be in it. The
content model (
https://www.w3.org/TR/html53/grouping-content.html#the-li-element) is "flow
content" (https://www.w3.org/TR/html53/dom.html#flow-content-2) which is
over 80 different elements.

In your specific question, yes, a button can be a child of a list item.

Glen




On Mon, May 14, 2018 at 9:32 AM, Lal Poorna Chand < = EMAIL ADDRESS REMOVED = >
wrote:

> Hi,
>
> My doubt is regarding the control types and their hierarchy.
> What can be the structure of a 'List item' control type??
>
> Thanks,
> Chand.
>
> On 14 May 2018 at 20:51, Angela French < = EMAIL ADDRESS REMOVED = > wrote:
>
> > Can you describe the text please? Sounds unusual.
> >
> > Angela French
> > SBCTC
> >
> > -----Original Message-----
> > From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > On Behalf Of
> > Lal Poorna Chand
> > Sent: Monday, May 14, 2018 7:01 AM
> > To: = EMAIL ADDRESS REMOVED =
> > Subject: [WebAIM] Can a list item contain a button as its child?
> >
> > Hi,
> >
> > Can a 'list item' contain a button as its child??
> > What are the typical structures of a list item and a menu item??
> > Explain with examples.
> >
> > Thanks,
> >
> > Chand.
> > > > > > at http://webaim.org/discussion/archives
> > > > > > > > > > > >
> > > > >

From: Lal Poorna Chand
Date: Mon, May 14 2018 10:28AM
Subject: Re: Can a list item contain a button as its child?
← Previous message | Next message →

Thank you.

On 14 May 2018 at 21:13, glen walker < = EMAIL ADDRESS REMOVED = > wrote:

> If you're talking about an <li> element, almost anything can be in it. The
> content model (
> https://www.w3.org/TR/html53/grouping-content.html#the-li-element) is
> "flow
> content" (https://www.w3.org/TR/html53/dom.html#flow-content-2) which is
> over 80 different elements.
>
> In your specific question, yes, a button can be a child of a list item.
>
> Glen
>
>
>
>
> On Mon, May 14, 2018 at 9:32 AM, Lal Poorna Chand <
> = EMAIL ADDRESS REMOVED = >
> wrote:
>
> > Hi,
> >
> > My doubt is regarding the control types and their hierarchy.
> > What can be the structure of a 'List item' control type??
> >
> > Thanks,
> > Chand.
> >
> > On 14 May 2018 at 20:51, Angela French < = EMAIL ADDRESS REMOVED = > wrote:
> >
> > > Can you describe the text please? Sounds unusual.
> > >
> > > Angela French
> > > SBCTC
> > >
> > > -----Original Message-----
> > > From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > On Behalf Of
> > > Lal Poorna Chand
> > > Sent: Monday, May 14, 2018 7:01 AM
> > > To: = EMAIL ADDRESS REMOVED =
> > > Subject: [WebAIM] Can a list item contain a button as its child?
> > >
> > > Hi,
> > >
> > > Can a 'list item' contain a button as its child??
> > > What are the typical structures of a list item and a menu item??
> > > Explain with examples.
> > >
> > > Thanks,
> > >
> > > Chand.
> > > > > > > archives
> > > at http://webaim.org/discussion/archives
> > > > > > > > > > > > > > > > > >
> > > > > > > > > >
> > > > >

From: Birkir R. Gunnarsson
Date: Mon, May 14 2018 11:41AM
Subject: Re: Can a list item contain a button as its child?
← Previous message | No next message

If you, however, are using a list construct as the basis for an ARIA
menu you have to hide the list construct from assistive technologies
and give all active items in the menu a role of menuitem:
<ul role="menu" aria-label="actions">
<li role="presentation"><button role="menuitem">edit</button></li>
<li role="presentation"><button role="menuitem">Delete</button></li>
</ul>




On 5/14/18, Lal Poorna Chand < = EMAIL ADDRESS REMOVED = > wrote:
> Thank you.
>
> On 14 May 2018 at 21:13, glen walker < = EMAIL ADDRESS REMOVED = > wrote:
>
>> If you're talking about an <li> element, almost anything can be in it.
>> The
>> content model (
>> https://www.w3.org/TR/html53/grouping-content.html#the-li-element) is
>> "flow
>> content" (https://www.w3.org/TR/html53/dom.html#flow-content-2) which is
>> over 80 different elements.
>>
>> In your specific question, yes, a button can be a child of a list item.
>>
>> Glen
>>
>>
>>
>>
>> On Mon, May 14, 2018 at 9:32 AM, Lal Poorna Chand <
>> = EMAIL ADDRESS REMOVED = >
>> wrote:
>>
>> > Hi,
>> >
>> > My doubt is regarding the control types and their hierarchy.
>> > What can be the structure of a 'List item' control type??
>> >
>> > Thanks,
>> > Chand.
>> >
>> > On 14 May 2018 at 20:51, Angela French < = EMAIL ADDRESS REMOVED = > wrote:
>> >
>> > > Can you describe the text please? Sounds unusual.
>> > >
>> > > Angela French
>> > > SBCTC
>> > >
>> > > -----Original Message-----
>> > > From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > On Behalf Of
>> > > Lal Poorna Chand
>> > > Sent: Monday, May 14, 2018 7:01 AM
>> > > To: = EMAIL ADDRESS REMOVED =
>> > > Subject: [WebAIM] Can a list item contain a button as its child?
>> > >
>> > > Hi,
>> > >
>> > > Can a 'list item' contain a button as its child??
>> > > What are the typical structures of a list item and a menu item??
>> > > Explain with examples.
>> > >
>> > > Thanks,
>> > >
>> > > Chand.
>> > > >> > > >> archives
>> > > at http://webaim.org/discussion/archives
>> > > >> > > >> > > >> > > >> > > >> > >
>> > >> > >> > >> > >> >
>> >> >> >> >>
> > > > >


--
Work hard. Have fun. Make history.