summaryrefslogtreecommitdiff
path: root/sphinx/builders/html.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/builders/html.py')
-rw-r--r--sphinx/builders/html.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/sphinx/builders/html.py b/sphinx/builders/html.py
index 50c38cdb2..48b21fa4e 100644
--- a/sphinx/builders/html.py
+++ b/sphinx/builders/html.py
@@ -117,7 +117,6 @@ class JavaScript(str):
self = str.__new__(cls, filename) # type: ignore
self.filename = filename
self.attributes = attributes
- self.attributes.setdefault('type', 'text/javascript')
return self
@@ -1098,7 +1097,6 @@ def setup_js_tag_helper(app: Sphinx, pagename: str, templatexname: str,
attrs.append('src="%s"' % pathto(js.filename, resource=True))
else:
# str value (old styled)
- attrs.append('type="text/javascript"')
attrs.append('src="%s"' % pathto(js, resource=True))
return '<script %s>%s</script>' % (' '.join(attrs), body)