Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.59k stars 798 forks source link

Jetpack causes warning on W3 Nu HTML Checker validation #24423

Closed WebGuyJeff closed 2 years ago

WebGuyJeff commented 2 years ago

Impacted plugin

Jetpack

Steps to Reproduce

Install Jetpack, validate any page at https://validator.w3.org/

The culprit is this line here which I've read to understand is some weird old hacky stat-collecting mechanism.

<style type='text/css'>img#wpstats{display:none}</style>

Please can the "type='text/css'" be removed as it's not required.

A clear and concise description of what you expected to happen.

Nice, clean valid HTML with no iffy bits at all.

What actually happened

There is an iffy bit.

Other information

Where has the ‘hide the stats smiley face image’ gone?

Operating System

Linux

OS Version

Debian 11 Stable

Browser

Chrome/Chromium

Browser Version(s)

100

kraftbj commented 2 years ago

@bigupjeff Thanks for the report! We removed it and it'll be in the release scheduled to go out on the first Tuesday of June.

WebGuyJeff commented 2 years ago

@kraftbj Awesome, thank you! My W3 validator OCD can rest easy now 😁