Javascript: script reference with no children not working -


i trying make jquery templates example work on sharepoint web part.

i narrowed problem down following:

this works:

<script type="text/javascript" src="/_layouts/servercomponents/jquery-latest.min.js" ></script> <script type="text/javascript" src="/_layouts/servercomponents/jquery.tmpl.min.js" ></script> 

but doesn't:

<script type="text/javascript" src="/_layouts/servercomponents/jquery-latest.min.js" /> <script type="text/javascript" src="/_layouts/servercomponents/jquery.tmpl.min.js" /> 

why? thanks!

because script not self-closing tag. need closing tag.

see specification:

start tag: required, end tag: required


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -