E-mail List Archives
Thread: Empty UL tags
Number of posts in this thread: 2 (In chronological order)
From: Rachel
Date: Fri, May 23 2003 7:40AM
Subject: Empty UL tags
No previous message | Next message →
We have a Web site that has a dynamically generated
site map. The site map uses nested bulleted lists, to
display two levels of sections.
When a section does not have any child subsections, it
ends up having an empty nested UL in it. This is
because of the way the back-end code is written.
Example:
<ul>
<li>Section name
<ul></ul>
</li>
</ul>
The ideal scenario would be that if a section doesn't
have children, the code wouldn't write a nested UL tag
at all. That way, we wouldn't end up with empty UL
tags. But we don't have the time to change the code.
My question is: will assistive technologies have
trouble with empty, nested UL tags? Will they "trip
up" any assistive technologies?
Thanks, as always, for your help.
Rachel Sengers
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/
From: Jukka K. Korpela
Date: Fri, May 23 2003 9:55AM
Subject: Re: Empty UL tags
← Previous message | No next message
On Fri, 23 May 2003, Rachel wrote:
> My question is: will assistive technologies have
> trouble with empty, nested UL tags?
Maybe. But a UL element (sic) with empty content is syntactically invalid,
so all bets are off anyway. You should not generate such constructs, since
they violate the formal requirement that a UL element contain one or more
LI elements.
--
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/