comparison src/c/urweb.c @ 599:889dc9fceb3a

Use header to set default script type
author Adam Chlipala <adamc@hcoop.net>
date Sun, 11 Jan 2009 10:22:19 -0500
parents 8f8771f32909
children aa2290c32ce2
comparison
equal deleted inserted replaced
598:4c2c740c6931 599:889dc9fceb3a
380 r[0] = 0; 380 r[0] = 0;
381 return r; 381 return r;
382 } else { 382 } else {
383 char *r = uw_malloc(ctx, 41 + (ctx->script_front - ctx->script)); 383 char *r = uw_malloc(ctx, 41 + (ctx->script_front - ctx->script));
384 384
385 sprintf(r, "<script type=\"text/javascript\">%s</script>", ctx->script); 385 sprintf(r, "<script>%s</script>", ctx->script);
386 return r; 386 return r;
387 } 387 }
388 } 388 }
389 389
390 uw_Basis_string uw_Basis_jsifyString(uw_context ctx, uw_Basis_string s) { 390 uw_Basis_string uw_Basis_jsifyString(uw_context ctx, uw_Basis_string s) {