Hi there, I have a quick question about the difference in rendering between the special User Message template and the standard templates.
I have a “backup local” copy of jQuery as per HTML5 Boilerplate, called in templates like this:
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script>window.jQuery || document[dot]write('<script src="/assets/js/libs/jquery-1.7.0.min.js"><\/script>')</script>Note the backslash on
<\/script>in that backup document write.
In my templates, this piece of code is part of a larger snippet, pulls through and renders in the generated html just fine.
However in the User Message template, the backslash is being stripped out:
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script>window.jQuery || document[dot]write('<script src="/assets/js/libs/jquery-1.7.0.min.js"></script>')</script>Has anyone got a quick explanation as to why this would happen, and any tips on how to hack round it?
Hope someone can help…
Mat
(Apologies for the slightly mangled code in the examples - going for readability rather than copy-n-paste-ability!)