Use HTML5.1 <main> tag #47

Closed
wants to merge 16 commits into
from

Projects

None yet

2 participants

Contributor
jmjf commented Feb 5, 2013

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.

jmjf added some commits Feb 5, 2013
@jmjf jmjf Update index.php
Add HTML5.1 main tag in place of div for role="main"
7e96148
@jmjf jmjf Update templates/_full_width.php
Add HTML5.1 main tag in place of div for role="main"
562dacc
@jmjf jmjf Update archive.php
Add HTML5.1 main tag in place of div for role="main"
e2830d9
@jmjf jmjf Update category.php
Add HTML5.1 main tag in place of div for role="main"
a2b608d
@jmjf jmjf Update single.php
Add HTML5.1 main tag in place of div for role="main"
feb78e7
@jmjf jmjf Update author.php
Add HTML5.1 main tag in place of div for role="main"
10cfc65
@jmjf jmjf Update page.php
Add HTML5.1 main tag in place of div for role="main"
53564d4
@jmjf jmjf Update 404.php
Add HTML5.1 main tag in place of div for role="main"
c677594
@jmjf jmjf Update search.php
Add HTML5.1 main tag in place of div for role="main"
5dc766a
@jmjf jmjf Update image.php
Add HTML5.1 main tag in place of div for role="main"
f7fc3aa
@jmjf jmjf Update tag.php
Add HTML5.1 main tag in place of div for role="main"
7873f9b
@jmjf jmjf Update js/html5shiv.min.js
Add support for HTML5.1 main element
ab69df0
@jmjf jmjf Update functions.php
Remove legend tag used outside fieldset.
5e0b517
@jmjf jmjf Update style.css
Add legend class to apply to span in comment header (that replaced invalid use of legend tag).
7b856fa
@jmjf jmjf Update style.css b22122a
@jmjf jmjf Update functions.php db36407
Owner

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.

@obenland obenland closed this Mar 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment