Skip to main content
Topic: $itemcodes or implicit lists (Read 2371 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

$itemcodes or implicit lists

Two things:
1) I was reading here:
http://www.w3.org/html/wg/drafts/html/master/grouping-content.html#the-ul-element
and the "type" attribute for the <li> is not supported in HTML5 (confirmed here too).
So, how about change it and add some styling to the <ul> instead?

2) if 1. is okay, what about prune/alter some of them and/or add a numbered list type?
For example the # or the + may generate a:
Code: [Select]
list-style-type: decimal;

The current item codes are:
Code: [Select]
		$itemcodes = array(
'*' => 'disc',
'@' => 'disc',
'+' => 'square',
'x' => 'square',
'#' => 'square',
'o' => 'circle',
'O' => 'circle',
'0' => 'circle',
);
Bugs creator.
Features destroyer.
Template killer.

Re: $itemcodes or implicit lists

Reply #1

Have not looked at the item list code in forever ... if its not valid html5 then makes sense to move it to the ul with a css class.  Is there any other way really?

I also like the idea of using # as an ordered list.