Skip to content

Commit

Permalink
After merging 4113734, I discover that documentElement can be on the …
Browse files Browse the repository at this point in the history
…document or the window. Added code to handle that properly.
  • Loading branch information
Wesley Workman committed Mar 26, 2012
1 parent 568e63f commit da2a543
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/index.rhtml
Expand Up @@ -8,14 +8,18 @@
# See the comments in this file for more information on what you can # See the comments in this file for more information on what you can
# change. # change.
-%> -%>
<!doctype html> <!DOCTYPE html>
<html<% unless @content_for_html5_manifest.blank? %> manifest="manifest.appcache"<% end %> class="no-js" lang="<%=language%>"> <html<% unless @content_for_html5_manifest.blank? %> manifest="manifest.appcache"<% end %> class="no-js" lang="<%=language%>">
<head> <head>
<meta http-equiv="X-UA-Compatible" content="IE=edge<%= config.chrome_frame ? ',chrome=1' : '' %>" > <meta http-equiv="X-UA-Compatible" content="IE=edge<%= config.chrome_frame ? ',chrome=1' : '' %>" >


<script> <script>
var SC_benchmarkPreloadEvents = { headStart: new Date().getTime() }; var SC_benchmarkPreloadEvents = { headStart: new Date().getTime() };
window.documentElement.className = window.documentElement.className.replace(/(^|\s)no-js(\s|$)/, '$1js$2'); var docElem = window.documentElement || document.documentElement;
if(docElem) {
docElem.className = docElem.className.replace(/(^|\s)no-js(\s|$)/, '$1js$2');
docElem = null;
}
</script> </script>


<meta http-equiv="Content-type" content="text/html; charset=utf-8" > <meta http-equiv="Content-type" content="text/html; charset=utf-8" >
Expand Down

0 comments on commit da2a543

Please sign in to comment.