+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/js/jquery.mobile.js b/js/jquery.mobile.js
index c88dcb91cd5..620236bdb36 100644
--- a/js/jquery.mobile.js
+++ b/js/jquery.mobile.js
@@ -6,6 +6,14 @@
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
+
+ // html5shiv MIT @rem remysharp.com/html5-enabling-script
+// iepp v1.6.2 MIT @jon_neal iecss.com/print-protector
+/*@cc_on(function(m,c){var z="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video";function n(d){for(var a=-1;++ai";if(g.childNodes.length!==1){var i=z.split("|"),o=i.length,s=RegExp("(^|\\s)("+z+")",
+"gi"),t=RegExp("<(/*)("+z+")","gi"),u=RegExp("(^|[^\\n]*?\\s)("+z+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),r=c.createDocumentFragment(),k=c.documentElement;g=k.firstChild;var h=c.createElement("body"),l=c.createElement("style"),f;n(c);n(r);g.insertBefore(l,
+g.firstChild);l.media="print";m.attachEvent("onbeforeprint",function(){var d=-1,a=p(c.styleSheets,"all"),e=[],b;for(f=f||c.body;(b=u.exec(a))!=null;)e.push((b[1]+b[2]+b[3]).replace(s,"$1.iepp_$2")+b[4]);for(l.styleSheet.cssText=e.join("\n");++d<0)a[b].className+=" iepp_"+i[d]}r.appendChild(f);k.appendChild(h);h.className=f.className;h.innerHTML=f.innerHTML.replace(t,"<$1font")});m.attachEvent("onafterprint",
+function(){h.innerHTML="";k.removeChild(h);k.appendChild(f);l.styleSheet.cssText=""})}})(this,document);@*/
+
(function( $, window, undefined ) {
diff --git a/js/jquery.mobile.page.js b/js/jquery.mobile.page.js
index 44f53934a19..740470e5c8e 100644
--- a/js/jquery.mobile.page.js
+++ b/js/jquery.mobile.page.js
@@ -35,6 +35,12 @@ jQuery.widget( "mobile.page", jQuery.mobile.widget, {
return;
}
+ //add data attrs to html5 markup
+ $elem.filter('section[role=document]').attr('data-role', 'page');
+ $elem.find('header').attr('data-role', 'header');
+ $elem.find('footer').attr('data-role', 'footer');
+ $elem.find('section[role=main]').attr('data-role', 'content');
+
//some of the form elements currently rely on the presence of ui-page and ui-content
// classes so we'll handle page and content roles outside of the main role processing
// loop below.