Hanging noscript Tag
-
The plugin doesn’t check for the presence of ‘<script’ at the start of the site admin’s input before deciding whether to wrap the code in script tags. It just wraps their input in the script tag regardless.
This can result in invalid javascript scripts where <noscript> tags are included, eg:
<script type='text/javascript'> <script type='text/javascript'> ... </script> <noscript>...</noscript> </script>
Leaving out the initial script tag results in
<script type='text/javascript'> ... </script> <noscript>...</noscript> </script>
Although <noscript> isn’t very popular these days (we all assume that all visitors have javascript enabled), it is still good practice.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Hanging noscript Tag’ is closed to new replies.