[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xhtml compliance and the menu



Chris and crew,

Been following the discussions on the list while reviewing display
code for xhtml compliance.  Some good discussion.  Waiting to hear
some of these good recommendations turned into direction.

As for the xhtml:  Most changes will be inconsequential (removing
inappropriate outer containers, ensuring attributes are properly
quoted, removing unsupported attributes, etc.).

However, the display code for the menu is a bit more complex and
requires some code changes.  As is, the various menu.pl scripts source
menu.ini and use the bracketed menu values for div_id values.
Unfortunately, many menu values contain spaces and one includes the
ampersand.  Since these characters are not legal in xhtml, and to
maintain display esthetics, I propose adding a "div_id=" value to each
item in menu.ini.  This will, however, require additional coding in
menu.pl to change from div_id="$menu" to div_id="$div_id" as read from
menu.ini and adding that to the getDocumentId routine.

Unless someone has a more elegant solution, I'll start on those
not-so-inconsequential changes as soon as early next week.

Ciao,

David A. Bandel
--
Focus on the dream, not the competition.
           - Nemesis Air Racing Team motto