<HTML><HEAD><META content="text/html; charset=UTF-8" http-equiv="Content-Type"></HEAD><BODY>Ah, didn't know that.<BR>
<BR>
They do it after <body> because they're changing the class of <body>, I was thinking of doing this to <html>. Either way is fine.<BR>
<BR>
Otto wrote:<BR>
<blockquote type="cite"><BR>
I personally have no problem with one-line scripts like this in a<BR>
theme template. The wp-admin does it this way itself, although it adds<BR>
this script in after the opening<body> tag:<BR>
<BR>
<script type="text/javascript"><BR>
        document.body.className = document.body.className.replace('no-js','js');<BR>
</script><BR>
<BR>
-Otto<BR>
<BR>
<BR>
On Tue, Oct 16, 2012 at 12:02 PM, WPForever Team<hi@wpforever.com> wrote:<BR>
<blockquote type="cite"><BR>
This is my first post here, I hope I'm doing it correctly.<BR>
<BR>
I want to add a "no-js" class to<html>, and then remove it immediately (and<BR>
add "js") if the browser supports JavaScript. For this, I want to add the<BR>
following as the first thing after<head><BR>
<BR>
<script>(function(h){h.className = h.className.replace('no-js',<BR>
'js')})(document.documentElement)</script><BR>
<BR>
> From what I could understand from the Theme Review page in the Codex, this<BR>
isn't allowed.<BR>
<BR>
Can this be an exception?<BR>
<BR>
_______________________________________________<BR>
theme-reviewers mailing list<BR>
theme-reviewers@lists.wordpress.org<BR>
http://lists.wordpress.org/mailman/listinfo/theme-reviewers<BR>
<BR>
</blockquote><BR>
_______________________________________________<BR>
theme-reviewers mailing list<BR>
theme-reviewers@lists.wordpress.org<BR>
http://lists.wordpress.org/mailman/listinfo/theme-reviewers</BODY></HTML>