From 94ab1e7b1bf3d56d21a57220de7309b0d19c4ca9 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sun, 7 Jan 2018 12:18:43 +1000 Subject: [PATCH] For HTML5 script tags you can omit the type attribute when its value is JavaScript. From MDN -> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script - Omitted or a JavaScript MIME type: For HTML5-compliant browsers this indicates the script is JavaScript. HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type. --- dash/dash.py | 2 +- tests/test_react.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dash/dash.py b/dash/dash.py index 8c1f1ce080..457f8093fe 100644 --- a/dash/dash.py +++ b/dash/dash.py @@ -236,7 +236,7 @@ def _generate_scripts_html(self): ) return '\n'.join([ - ''.format(src) + ''.format(src) for src in srcs ]) diff --git a/tests/test_react.py b/tests/test_react.py index 0133e6c3eb..830c7234f4 100644 --- a/tests/test_react.py +++ b/tests/test_react.py @@ -20,7 +20,7 @@ def generate_css(css_links): def generate_js(js_links): return '\n'.join([ - ''.format(l) + ''.format(l) for l in js_links ])