volojs / create-template

The sample single page app project template, uses RequireJS
416 stars 364 forks source link

removing body script elements #4

Closed rickdog closed 9 years ago

rickdog commented 9 years ago

require is removing my body's script elements:

<!DOCTYPE html>
<html>
    <head>
        <script data-main="app" src="lib/require.js"></script>
    </head>
    <body>
        <h1>Hello World</h1>
        <script>
            alert(1);
        </script>
    </body>
</html>

in inspector:

$("script")
<script src="lib/require.js" data-main="app">
jrburke commented 9 years ago

This seems to be a behavior that $() is doing. If I do document.getElementsByTagName('script'), I see that script as the last one in that list.

So closing, as I do not believe this is related to requirejs or this template, but something with the $() function.