WPCrafter Community

Find answers, ask questions, and connect with our
WordPress community around the world.

Home Community General Questions Lots of errors w3.org when using elementor

  • Lots of errors w3.org when using elementor

     Anonymous updated 10 months, 2 weeks ago 1 Member · 2 Posts
  • John

    Dec 4, 2017 at 5:50 am

    Hi there i am using elementor. And it is a great tool to build nice elements. So now i upload the Html source in w3.org and i got a lot of errors.

    Like these:

    Warning: The type attribute is unnecessary for JavaScript resources.

    Warning: The type attribute for the style element is not needed and should be omitted

    Error: Bad value for attribute href on element link: Illegal character in query: | is not allowed.

    From line 153, column 2; to line 153, column 497

    </style><span class="lf" title="Line break">↩</span> <b><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Patrick+Hand:10<span class="snip">…</span>,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic"></b></head

    Error: Element head is missing a required instance of child element title.

    From line 153, column 498; to line 153, column 504

    00italic"><b></head></b><span class="lf" title="Line break">↩</span><span class="lf" title="Line break">↩</span><bod

    Warning: The navigation role is unnecessary for element nav.

    Warning: Section lacks heading. Consider using h2h6 elements to add identifying headings to all sections.

    Warning: The type attribute is unnecessary for JavaScript resources.

    And a lot of more, i don't no what to do..

    Please help


    Thanks Pieter

  • Anonymous

    May 17, 2019 at 2:35 am

    The type error is not an error, its a warning and can be ignored.
    And it doesnt come from elementor. It comes from WordPress.
    You can fix it by add this to your functions.php:
    add_filter( ‘style_loader_tag', ‘removeCrapInHtmlAttributes', 10, 2 );
    add_filter( ‘script_loader_tag', ‘removeCrapInHtmlAttributes', 10, 2 );

    function removeCrapInHtmlAttributes( $tag, $handle ) {
    return preg_replace( “/type=[‘\”]text\/(javascript|css)[‘\”]/”, ”, $tag );

Log in to reply.

Original Post
0 of 0 posts June 2018

Stay Up To Date

Enter your name and email for the lates news, updates, and tutorials.