Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W3 Validator errors when "Load images on scroll" turned on #316

Closed
Nate82 opened this Issue Sep 27, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@Nate82
Copy link

Nate82 commented Sep 27, 2016

Not sure if it's a big deal but it throws an error for each image on a page:
The sizes attribute may be specified only if the srcset attribute is also present.

https://validator.w3.org/nu/?showsource=yes&doc=http%3A%2F%2Fdemo-hueman.presscustomizr.com%2F

@Nikeo

This comment has been minimized.

Copy link
Collaborator

Nikeo commented Sep 28, 2016

Thanks for reporting.
@eri-trabiccolo, do you have any idea for a possible fix ? thanks

@eri-trabiccolo

This comment has been minimized.

Copy link
Contributor

eri-trabiccolo commented Sep 28, 2016

Well yeah, where we replace the srcset with data-srcset in PHP we can do the same with the sizes attribuite and then revert it in the smartload js.
Should be fine.
rock&roll men! 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.