Support » Alpha/Beta/RC » Twenty Seventeen html validation errors

  • Resolved Galen Evans

    (@galen3050)


    HTML Tidy gives the following error for Twenty Seventeen for every menu item that has children:

    Error: Attribute “href” not allowed on element “use” at this point.

    Changing line #105 of /inc/icon-functions.php from

    $svg .= ' <use href="#icon-' . esc_html( $args['icon'] ) . '" xlink:href="#icon-' . esc_html( $args['icon'] ) . '"></use> ';

    to

    $svg .= ' <use xlink:href="#icon-' . esc_html( $args['icon'] ) . '"></use> ';

    fixes the error, and I am unable to see any side effects from the change.

    • This topic was modified 11 months, 1 week ago by  Galen Evans.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Twenty Seventeen html validation errors’ is closed to new replies.