I have these errors in W3c validator
Are these errors or warnings?
What is the address of the site/page in question?
Once you give us some additional clarification, we will be more than happy to continue addressing your issue.
WordPress itself is responsible for this, and an issue has already been opened about your concern.
You can follow along here:
https://core.trac.ww.wp.xz.cn/ticket/42804
If you have additional questions, please let us know!
The following scripts are generated by Jetpack, not WordPress.
<script type='text/javascript'>
/* <![CDATA[ */
var related_posts_js_options = {"post_heading":"h4"};
/* ]]> */
</script>
<!--[if IE]>
<script type="text/javascript">
if ( 0 === window.location.hash.indexOf( '#comment-' ) ) {
// window.location.reload() doesn't respect the Hash in IE
window.location.hash = window.location.hash;
}
</script>
<![endif]-->
<script type="text/javascript">
(function () {
var comm_par_el = document.getElementById( 'comment_parent' ),
comm_par = ( comm_par_el && comm_par_el.value ) ? comm_par_el.value : '',
frame = document.getElementById( 'jetpack_remote_comment' ),
tellFrameNewParent;
Is there a way I can remove the type=”text/javascript” in the script generated by Jetpack? Thanks.
Is there a way I can remove the type=”text/javascript” in the script generated by Jetpack?
I’m afraid that won’t be possible. Jetpack itself does not add that part; All our scripts are enqueued using core WordPress functions. type=”text/javascript” is automatically added by WordPress when the file is enqueued.
As a result, there isn’t much we can do to solve this. That also means that once the Core issue my colleague mentioned earlier gets solved in WordPress, the fix will apply to all enqueues in WordPress, including those made by Jetpack.
I hope this clarifies things a bit.