Support » Fixing WordPress » W3 Validation Errors

  • Hello,

    I updated to 4.9.1 when it was released and since then I have been trouble with validation errors and warnings. Previous to this, I was getting 0 errors and 0 warnings. I am using a child theme of wordpress twenty seventeen default theme and elementor as a page builder.

    On the homepage, I’m receiving these issues:

    Errors (13)
    The sizes attribute may be specified only if the srcset attribute is also present. (13)

    Warnings (31)
    The type attribute is unnecessary for JavaScript resources. (27)
    The type attribute for the style element is not needed and should be omitted. (4)

    Most of the rest of the pages are pretty forgiving except the contact page, which seems to have an issue with the iframe:

    Errors (9)
    The sizes attribute may be specified only if the srcset attribute is also present.
    The ___ attribute on the ___ element is obsolete. Use CSS instead. (8)
    The frameborder attribute on the iframe element is obsolete. Use CSS instead. (2)
    The scrolling attribute on the iframe element is obsolete. Use CSS instead. (2)
    The marginheight attribute on the iframe element is obsolete. Use CSS instead. (2)
    The marginwidth attribute on the iframe element is obsolete. Use CSS instead. (2)

    Warnings (29)
    The type attribute is unnecessary for JavaScript resources. (23)
    The type attribute for the style element is not needed and should be omitted. (4)
    Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections. (2)

    Any ideas?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would not take special note of anything that is not listed as an HTML Markup issue (which can cause issues with the display of your site mostly on older browsers as newer ones do a great job themselves of correcting such errors on the fly).

    Note the top line of the New (Nu) Checker:

    This tool is an ongoing experiment in better HTML checking, and its behavior remains subject to change

    WordPress.org is a very modern and up to date CMS that others catch up with once in a while…

    Does the site look as desired on varying desktop, tablet and mobile screen widths? Is Google, other Search Engines balking? Are other tools showing so many issues? Are there display issues?

    Also, since most of this is theme related, try posting this (all they need is the site link, they can then run that thru W3) at the Theme forum:

    https://wordpress.org/support/theme/twentyseventeen

    Great, thanks Pioneer. I’ll take a stab at that. I appreciate the feedback

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.