Re: Semantics, HTML5, and other gruesomeness.
Reply #1 – June 24, 2013, 02:32:15 am
Absolutely agree on .cat_bar, .title_bar, catbg, titlebg and and others.. I've always hated these names, they never made any sense to me.. I'd use a flat and simple strucure, though: <h3 class="content_header"> for cat_bar, catbg <h4 class="content_header"> for title_bar, titlebg <p class="post_content"> for windowbg <p class="post_content_alternate"> for windowbg2 <p class="post_conent_unapproved"> ... Re HTML5: I've added some HTML5 additions in earlier PRs, mainly enhancements for the <input> boxes (placeholders, autofocus, email input and some <time> tags.. ) I was thinking about adding <input type="date"> for birthdays, calendar and other date related fields, but that's a bit more complex since some of the are splitted <inputs> and allow partial content (the birthday for example has inputs for year, month and day and you can fill only some of them) I'd be carefullly with semantics addition. Some of them make sense, but it's important to use them in the right context. Not sure, but the initial post could be declared the topic's <header>, the replies would become a <section>
Re: Semantics, HTML5, and other gruesomeness.
Reply #5 – June 24, 2013, 06:57:33 am
They specifically state forum posts. I don't think it gets clearer than that. They didn't say blog posts which have a clear topic and comments. There are even examples of its usage as forum posts around. Every forum post stands alone with clear author, content, header (time at the very least but also the subject). I didn't want to post because I was just doing it on another thing I am doing and was on #elkarte anyway. It's not a what's new today thing, it is clear and simple and allows for better CSS targeting at least. Also, there are no downsides afaict.
Re: Semantics, HTML5, and other gruesomeness.
Reply #7 – June 24, 2013, 10:47:59 am
I think that for the most part, the original post in a topic definitely fits that description. It's always the topic that starts the discussion. Much like it is on news sites and even blogs. Article fits nicely IMO.