Support » Plugin: Contact Form 7 » type=”text/javascript” is currently unrecommended

  • Resolved jidaikobo

    (@jidaikobo)


    Hi Miyoshi-san.

    Contact Form 7、いつもお世話になっています。
    HTML5では、<script>のtype属性値のtext/javascriptは、非推奨になっているので、無くしてしまうと良いと思います。

    type=”text/javascript” is currently unrecommended. So it shall be better to remove.

    259 @ /modules/recaptcha.php
    – <script type=”text/javascript”>
    + <script>

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    The type is a required attribute in HTML 4, and as you can’t be 100% sure even now that there is no one trying to access with a pre-modern browser, the contact form plugin needs to keep the compatibility for the type attribute use.

    That said, as you pointed out, the type attribute is now optional in HTML5 and should be omitted when the content of the script element is JavaScript, it will be not set by default in the future versions.

    Thank you for giving me a quick reply.

    I understood that you’re care for lower compatibility.

    This issue is not so critical.
    So, I am looking forward to disappearing errors at W3C validator.

    Thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘type=”text/javascript” is currently unrecommended’ is closed to new replies.