WordPress and W3 Validation Error "The type attribute is unnecessary for JavaScript resources."

Hello authors,

Recently W3C introduced a new standard, meaning you have to no longer use script type when enqueuing a script, but just script.

The warnings shows in validator as follows:

48 PM

The question is how can we deal with that when developing WordPress themes? All tags are generated automatically by WordPress. Should we try to prevent it by loading some complex functions or just leave it as it is?

I really hope this wouldn’t be a reason for a soft rejection :thinking:

Leave it as it is. Probably in some update will WP this change if it is necessary.

1 Like

I have in same problems and already got soft rejection from TF. Please anybody help me what can I do for this?

May be you can try this →