Require end tag for <script>
element (script-element
)
For legacy reasons the <script>
element must include a </script>
end tag even when using the src
attribute.
Rule details
Examples of incorrect code for this rule:
<script src="myscript.js"/>
Examples of correct code for this rule:
<script src="myscript.js"></script>