ElkArte Community

Elk Development => Feature Discussion => Exterminated Features => Topic started by: emanuele on March 14, 2014, 10:45:48 am

Title: $itemcodes or implicit lists
Post by: emanuele on March 14, 2014, 10:45:48 am
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 (http://www.w3schools.com/tags/tag_ul.asp)).
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:
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',
);
Title: Re: $itemcodes or implicit lists
Post by: Spuds on March 15, 2014, 10:22:18 am
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.
Title: Re: $itemcodes or implicit lists
Post by: emanuele on March 15, 2014, 11:08:24 am
https://github.com/emanuele45/Dialogo/commit/81f0a856f1a32691884a34a971744810102350c0

O:-)