ElkArte Community

Elk Development => Feature Discussion => Exterminated Features => Topic started by: Antechinus on December 30, 2012, 06:05:18 am

Title: Hey HTML5 doctype?
Post by: Antechinus on December 30, 2012, 06:05:18 am
Just wondering if it's worth jumping in the HTML 5 pond. Lotsa people do it, so it's not necessarily fatal, and it brings some handy perks wth it. We don't really need to stick with older doctypes if we don't want to.

Random example: http://www.w3.org/TR/wai-aria/ This stuffz is great for a11y but wont validate under anything but HTML5.

http://www.paciellogroup.com/blog/2011/06/html5-accessibility-chops-aria-validation/

Which is a bit of a bummer.
Title: Re: Hey HTML5 doctype?
Post by: Antechinus on January 04, 2013, 08:41:11 pm
Ok, you talkative types :P I'm going HTML5 on my guinea pig anyway. Just decided to go for it this morning. Too many benefits, not enough drawbacks, IMO. :)
Title: Re: Hey HTML5 doctype?
Post by: IchBin on January 05, 2013, 05:47:02 pm
HTML5 for the win. The mobilz theme has it already too. Do it and shut up already! ;)
Title: Re: Hey HTML5 doctype?
Post by: Antechinus on January 06, 2013, 12:14:25 am
I haz valid HTML5 on 1.1.x.  :D
Title: Re: Hey HTML5 doctype?
Post by: Spuds on February 01, 2013, 07:26:09 pm
Well the change is not to bad, just a bunch of busy work to remove the depreciated tags etc ....

Would we use modernizr as well?
Title: Re: Hey HTML5 doctype?
Post by: Antechinus on February 01, 2013, 07:30:08 pm
Dunno. Depends what tags we want to use. Modernizer does generate a whole pile of poo, so if it's not useful poo then I might be inclined to avoid it.
Title: Re: Hey HTML5 doctype?
Post by: Arantor on February 01, 2013, 09:20:15 pm
You'd be surprised how much busy work is involved in pull out the deprecated tags assuming you also bother to strip the / nonsense (which is still valid, as I understood it)

Nao spent days and days on it, IIRC...
Title: Re: Hey HTML5 doctype?
Post by: Spuds on February 01, 2013, 09:53:27 pm
I can imagine it would be a time blackhole

I changed it just to see what errors / warnings the validator tossed out and it was considerable ... nothing major (on the few pages I checked), but not an few evenings worth of effort either. 
Title: Re: Hey HTML5 doctype?
Post by: Bloc on February 02, 2013, 06:59:18 am
Read an interesting article about Modernizer, which pretty much echoes my thoughts about it. Well, some of them. :)

http://nefariousdesigns.co.uk/sniff-my-browser-the-modernizr-inadequacy.html
Title: Re: Hey HTML5 doctype?
Post by: Antechinus on February 12, 2013, 05:08:29 pm
My 2c: stuff Modernizer. If they can't even spell, I'm not going to trust their code. :P

We probably wont be using all that many of the new tags, because we simply wont need them. So we can just do something like this if we are worried about IE8:

Code: [Select]
	<script><!-- // --><![CDATA[';
if ($context['browser']['is_lte_ie9'])
echo '
document.createElement("article"); document.createElement("aside");
document.createElement("details"); document.createElement("figcaption");
document.createElement("figure"); document.createElement("footer");
document.createElement("header"); document.createElement("hgroup");
document.createElement("nav"); document.createElement("section");';
Rough example with ends tags missing. You get that.