Commit c83365d4 by Philipp Wollermann

Fix whitespace in script tags and remove charset attribute for inline scripts.

Before:
<script   type="text/javascript" ...
<script async  type="text/javascript" ...
<script  defer type="text/javascript" ...
<script async defer type="text/javascript" ...

After:
<script type="text/javascript" ...
<script async type="text/javascript" ...
<script defer type="text/javascript" ...
<script async defer type="text/javascript" ...

The charset attribute is not valid for inline scripts:
"Element script must not have attribute charset unless attribute src is also specified."
http://dev.w3.org/html5/markup/script.html
parent 04e7c8c6
<script {% if async %}async{% endif %} {% if defer %}defer{% endif %} type="text/javascript" charset="utf-8">
<script{% if async %} async{% endif %}{% if defer %} defer{% endif %} type="text/javascript">
{{ source|safe }}
</script>
\ No newline at end of file
<script {% if async %}async{% endif %} {% if defer %}defer{% endif %} type="text/javascript" charset="utf-8">
<script{% if async %} async{% endif %}{% if defer %} defer{% endif %} type="text/javascript">
{{ source|safe }}
</script>
<script {% if async %}async{% endif %} {% if defer %}defer{% endif %} type="{{ type }}" src="{{ url }}" charset="utf-8"></script>
\ No newline at end of file
<script{% if async %} async{% endif %}{% if defer %} defer{% endif %} type="{{ type }}" src="{{ url }}" charset="utf-8"></script>
\ No newline at end of file
<script {% if async %}async{% endif %} {% if defer %}defer{% endif %} type="{{ type }}" src="{{ url }}" charset="utf-8"></script>
<script{% if async %} async{% endif %}{% if defer %} defer{% endif %} type="{{ type }}" src="{{ url }}" charset="utf-8"></script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment