obenland / the-bootstrap

A responsive WordPress Theme based on Bootstrap, from Twitter.
http://en.wp.obenland.it/the-bootstrap/
GNU General Public License v3.0
110 stars 46 forks source link

Use HTML5.1 <main> tag #47

Closed jmjf closed 11 years ago

jmjf commented 11 years ago

HTML 5.1 adds support for the

semantic element to identify the main content of the page. The recommendation is to replace
with
. See http://www.webmonkey.com/2013/02/main-element-lands-a-starring-role-in-html/ for more details on
and links to references.

This set of changes implements the

element in the-bootstrap (based on searching all files for role="main"). A minified version of the latest html5shiv (https://github.com/aFarkas/html5shiv/tree/master/src) is included in the js directory to add support for the main tag for browsers which do not currently support it (changes do not include un-minified version). Note that, when I pulled it, main had only been added to the unminified shiv, so I minified code using an online minifier. Also note that this is html5shiv-printshiv.js.

obenland commented 11 years ago

Thank you for your pull request! I'd like to wait for a broader adoption of the element and it actually making it past a draft status before going forward with this. Let me close the ticket for now, we can re-open it later if necessary.