Commit a93074db2897ab6caa41720b1c99c774272cb007

Authored by Julien Verneuil
1 parent 3cf3b8d7

script type added to the page when using js_inline

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
web/CXM_making_a_web_site.anubis
@@ -4637,7 +4637,10 @@ define Printable_tree @@ -4637,7 +4637,10 @@ define Printable_tree
4637 js(jsf) then 4637 js(jsf) then
4638 [add_js_files([jsf]) . _format_html_head(t, so_far)], 4638 [add_js_files([jsf]) . _format_html_head(t, so_far)],
4639 js_inline(jsi) then 4639 js_inline(jsi) then
4640 - ["<script>"+content(jsi)+"</script>\n" . _format_html_head(t, so_far)], 4640 + if jsi is
  4641 + {
  4642 + script(type, _) then ["<script type=\"" + type + "\">"+content(jsi)+"</script>\n" . _format_html_head(t, so_far)],
  4643 + }
4641 css(cssf) then 4644 css(cssf) then
4642 ["<link rel=\"stylesheet\" type=\"text/css\" href=\""+file_name(cssf)+"\" />\n" . _format_html_head(t, so_far)], 4645 ["<link rel=\"stylesheet\" type=\"text/css\" href=\""+file_name(cssf)+"\" />\n" . _format_html_head(t, so_far)],
4643 css_inline(cssi) then 4646 css_inline(cssi) then