Html & JavaScript validation problem: "Element script is missing required attribute src"

Posted by jess on Stack Overflow See other posts from Stack Overflow or by jess
Published on 2011-01-14T02:27:51Z Indexed on 2011/01/14 2:53 UTC
Read the original article Hit count: 201

Filed under:
|
|

While validating this snipit:

<script type="text/javascript" charset="utf-8">
    /* <![CDATA[ */             
    jQuery.post('http://domain.com/dev/wp-admin/admin-ajax.php', {action: 'wpp_update', token: '2e85204387', id: 214});
    /* ]]> */

</script>

I am getting the validation error: "Element script is missing required attribute src."

The page has an HTML5 doctype and is encoded as utf-8.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html